How do I implement this in my project? - PVicVG/GMWindows GitHub Wiki
Implementing this is quite easy. Aside from importing the assets in the project, including the "DIR_" macros, you can call the windows in the same way it's showed in the obj_generate_window's code. The hardest one to implement is definetly the Option Menu one.
// Create Instance
var w_;
w_ = instance_create(x, y, obj_window_options)
// Name
w_.window_name = "Options";
// Icon
w_.window_icon = 1;
// Size
w_.window_width = 168;
w_.window_height = 128;
// Minimum Size
w_.min_window_width = 168;
w_.min_window_height = 64;
// Options
w_.option[1] = "Center Window";
w_.option_action[1] = 1;
w_.option[2] = "Restart";
w_.option_action[2] = 2;
w_.option[3] = "Change Color of Sample Text";
w_.option_action[3] = 3;
w_.option_max = 3;
// Target
w_.target_object = id;
// Set focus
global.win_in_focus = w_.id;
The things you mostly have to modify are under "// Options". The option_action indexes the number of the action the respective option does once it's clicked. You can add and remove actions by going in obj_window_options's User Defined 0.