305878db42
1. Adding the ability to customize display, scale (size), shortcuts to the DebugConsole class. 2. Adding a function to utils.py to get Debug Console settings from Render: Armory. 3. Added Debug Console settings to the Armory Project interface: - Enable (default value - False); - Position (Left, Center, Right, default value - Right); - Scale Console (from 0.3 to 10); - Visible. 4. Added transfer of Debug Console settings to exporter.py. 5. Added logical nodes to control DebugConsole while the application is running.
16 lines
No EOL
559 B
Python
16 lines
No EOL
559 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetDebugConsoleSettings(ArmLogicTreeNode):
|
|
"""Get Debug Console Settings"""
|
|
bl_idname = 'LNGetDebugConsoleSettings'
|
|
bl_label = 'Get Debug Console Settings'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(GetDebugConsoleSettings, self).init(context)
|
|
self.add_output('NodeSocketBool', 'Visible')
|
|
self.add_output('NodeSocketFloat', 'Scale')
|
|
self.add_output('NodeSocketString', 'Position')
|
|
|
|
# Add Node
|
|
add_node(GetDebugConsoleSettings, category=PKG_AS_CATEGORY) |