Hi,
I am working on the latest MyRetrozz Mini (blatant plug) and stumbled across what I would have thought would be the easiest thing to do.. yet after 2 hours of trying many (some silly) options I am stuck and I need help...
Here is the data I am using as source (just a sample for testing):
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra
.\VIC20\Games\[CRT]\Multipart\Adventureland (1981)(Commodore)[SYS 32592].zip;Adventureland (1981)(Commodore)[SYS 32592];vic_games;Adventureland (1981)(Commodore)[SYS 32592];;;16k;;;;;;NTSC;;;games
The field I am using is 'Category'
Side note.. if this helps anyone for something else.. this part works fine:
local memtype = fe.add_image ( "[Category].png", flx*0.364583333333, fly*0.4351851851851852, flw*0.1171875, flh*0.1134259259259259);
Here is where it does NOT work..
I need to set up specific conditions based on which 'Category' I am using, i.e. the value, 3k, 8k, 16k, 24k and this is (presumably) just text because it works in showing the correct picture on the screen.
What I thought was reasonable was (this is a debugging test):
if ("[Category]" == "16k" )
{
local debug_showtext = fe.add_text( "16k cart found!", 1900, 260, 500, 150);
debug_showtext.char_size = 20;
}
yet the condition never hits true.. if I do >= it will always show but that just shows the if and operand are at least doing something
I tried this variant (before I tried really silly options which are to ludicrous to show here):
local testvariable = "[Category]";
local debug_showtext = fe.add_text( testvariable, 1900, 240, 500, 150); <--- this does show something on the screen properly so I know the variable has the correct data
debug_showtext.char_size = 20;
if (testvariable == "16k" )
{
local debug_showtext = fe.add_text( "16k cart found!", 1900, 260, 500, 150);
debug_showtext.char_size = 20;
}
Help!
Thank You,
Retrozz