hallowed-holiday-15370
02/16/2023, 12:16 PMhaxe.ui.containers.ScrollView with a haxe.ui.containers.VBox inside of it, 2 `Box`es inside that, each with my customized FlxBitmapText class inside those boxes (one has the text "Age I" the other has blank text")
TLDR: PlayState contains a ScrollView with some stuff in it. I have a SubState open on top of it.
The red "close" button on the SubState does not work if it is in front of the ScrollView which is in the PlayState
I had the ScrollView up a little higher and when you click the Red Close button, it does not register (like my Learn buttons were doing before)
When I moved down the ScrollView (or comment out the add on the PlayState) it works again. Also, right now, since the button is half-overlapping the ScrollView, if you click on it on the part outside the Scrollview, it works, but not if you click it on the other half.
IMO no ui stuff should be able to respond to input when it's not in the active state/substate...
But another caveat is that I spent a bunch of time just trying to figure out how to tell the ScrollView or the VBox or any component to disable so that I could even just have a hacky soltion (diasable that object when the substate opens, re-enable when it returns)
But I don't see how to do that...broad-honey-24785
02/16/2023, 12:37 PMbroad-honey-24785
02/16/2023, 12:37 PMhallowed-holiday-15370
02/16/2023, 12:37 PM#if debughallowed-holiday-15370
02/16/2023, 12:38 PMbroad-honey-24785
02/16/2023, 12:38 PMcareful-butcher-88704
02/16/2023, 3:58 PMshy-wire-69404
02/16/2023, 4:57 PMshy-wire-69404
02/16/2023, 4:58 PMshy-wire-69404
02/16/2023, 5:04 PMfew-ocean-27506
02/16/2023, 5:44 PM.loadGraphic on an FlxBackdrop object?bright-gpu-74537
02/16/2023, 5:50 PMbright-gpu-74537
02/16/2023, 5:53 PMhallowed-holiday-15370
02/16/2023, 5:54 PMactive = false?bright-gpu-74537
02/16/2023, 5:56 PMwitty-island-52596
02/16/2023, 6:21 PMfew-ocean-27506
02/16/2023, 7:05 PMfew-ocean-27506
02/16/2023, 7:05 PMhallowed-holiday-15370
02/16/2023, 7:24 PMcareful-pilot-14076
02/16/2023, 9:18 PMbreezy-account-94066
02/16/2023, 9:41 PMwitty-island-52596
02/16/2023, 10:12 PMwitty-island-52596
02/16/2023, 10:13 PMwitty-island-52596
02/16/2023, 10:14 PMbreezy-account-94066
02/16/2023, 10:41 PMbreezy-account-94066
02/16/2023, 10:41 PMbreezy-account-94066
02/16/2023, 10:51 PMhx
package;
import PlayState;
import UsefulFunctions;
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.tile.FlxTilemap;
import flixel.util.FlxColor;
import haxe.Json;
typedef WoodcuttingItems = {
var itemName:String;
var worth:Int;
var stackable:Int;
var itemSprite:String;
}
class Woodcuttingitems
{
public static var Woodcuttingitmes;
public static var woodcuttingitems:Array<WoodcuttingItems> = [
{
itemName: "Logs",
worth: 1,
stackable: 0,
itemSprite = loadGraphic("assets/images/resources/" + Woodcuttingitems.itemSprite + ".png");
},
{
itemName: "Oak Log",
worth: 1,
stackable: 0,
itemSprite = loadGraphic("assets/images/resources/" + Woodcuttingitems.itemSprite + ".png");
}
];
public static var activeSkill:WoodcuttingItems;
} Is this the correct way to make an item list? Trying to add item data with a type def, but im still learning HaxeFlixel and would like someone to point out my mistakes here if possible :)shy-wire-69404
02/16/2023, 10:53 PMshy-wire-69404
02/16/2023, 10:53 PMbreezy-account-94066
02/16/2023, 10:56 PM