This repository was archived by the owner on Aug 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11# List TODO for Cruese Engine
22## v1.1 (Small Updated)
3- - [ ] Add a card display game onto ` GameSelectionState ` (it likely display cartridge)
3+ - [X ] Add a card display game onto ` GameSelectionState ` (it likely display cartridge)
44- [X] Add a crash handler
55- [X] Add a ` About ` class
66
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import flixel.text.FlxText;
1414import flixel .util .FlxColor ;
1515import haxe .io .Bytes ;
1616import openfl .Lib ;
17+ import openfl .display .Bitmap ;
1718import openfl .display .BitmapData ;
1819
1920// thought, i wanna make this like a game console
@@ -155,7 +156,12 @@ class GameSelectionState extends FlxState
155156 }
156157 try
157158 {
158- cardGame .loadGraphic (PolyHandler .trackedMods [curSelected ].modPath + " /cardGame.png" );
159+ var data = BitmapData .fromFile (PolyHandler .trackedMods [curSelected ].modPath + " /cardGame.png" );
160+ // trace(data);
161+ if (data == null )
162+ cardGame .loadGraphic (Paths .image (' gameUI/cardGameMissing' ));
163+ else
164+ cardGame .loadGraphic (data );
159165 }
160166 catch (e : Dynamic )
161167 {
You can’t perform that action at this time.
0 commit comments