Moved and added a bunch of stuff

This commit is contained in:
2025-01-15 19:45:00 +01:00
committed by andreas
parent caa062a5aa
commit 6654d53f91
19 changed files with 491 additions and 355 deletions
+16 -4
View File
@@ -1,6 +1,8 @@
package game.ui.console;
import engine.HProfiler;
import engine.ui.UIPane;
import engine.ui.UIElement;
import openfl.text.TextField;
import openfl.display3D.textures.Texture;
import openfl.display.Sprite;
@@ -29,7 +31,7 @@ class ConsolePane extends Sprite{
testPane.addChild(titlebarPane);
testPane.addChild(inputPane);
testPane.addChild(outputPane);
var textField:TextField = new TextField();
@@ -39,10 +41,20 @@ class ConsolePane extends Sprite{
var testInputElement:UIElement = new UIElement("inputelem", {height: 32, width: 300},textField);
testInputElement.dimensions.expandBehavior = STRETCH;
testInputElement.padding = {x: 8, y: 8};
var inputFieldPane:UIPane = new UIPane("input field", {height: 32, width: 3});
var inputButtonPane:UIPane = new UIPane("submit button", {height: 32, width: 32});
inputPane.addChild(testInputElement);
var inputButtonPane:UIPane = new UIPane("submit button", {height: 32, width: 32});
inputButtonPane.align = END;
var inputFieldPane:UIPane = new UIPane("input field", {height: 32, width: 3});
inputFieldPane.align = START;
inputFieldPane.dimensions.expandBehavior = STRETCH;
inputPane.addChild(inputButtonPane);
inputPane.addChild(inputFieldPane);
//inputFieldPane.addChild(testInputElement);