Sorry for the visual exemple:
-------------------------------------
-
- MyName (TextEntry)
- MyLastName (TextEntry )
- My Favorite Color ( TextEntry)
-
-------------------------------------
Code: Select all
var config := ReadConfigFile( ":Main:Players" );
var elem := config["Settings"];
var script_list := GetConfigStringArray( elem, "Elem" );
var num_options := script_list.Size();
var y_pos := 110;
foreach entry in ( script_list )
GFTextLine( gump, 45, y_pos, 1153, entry );
GFResizePic( gump, 250, y_pos, GFGetCfgConst("Backgrounds", "GOLDTRIM" ), 190, 28 );
GFTextEntry( gump, 255, y_pos+4, 190, 28, 2100 );
y_pos += 20;
SleepMS(2);
endforeachCode: Select all
var config := ReadConfigFile( ":Main:Players" );
var elem := config["Settings"];
var script_list := GetConfigStringArray( elem, "Elem" );
var data := array;
var y_pos := 110;
foreach entry in ( script_list )
GFTextLine( gump, 45, y_pos, 1153, entry );
GFResizePic( gump, 250, y_pos, GFGetCfgConst("Backgrounds", "GOLDTRIM" ), 190, 28 );
data.append( GFTextEntry( gump, 255, y_pos+4, 190, 28, 2100 ));
y_pos += 20;
SleepMS(2);
endforeach
var input := GFSendGump( mobile, gump );
var result := GFExtractData( input, Data );
Broadcast( result );
Edited: From one side I understand why my "append()" doesn't work but I can't think of a way to extract it. In other words, I want to extract all the GFTextEntry for reading.