Skip to content

Commit

Permalink
feat(daedalus_classes): add c_menu_item::frame_pos{x,y} for Nintend…
Browse files Browse the repository at this point in the history
…o Switch support
  • Loading branch information
Try authored Oct 15, 2023
1 parent b147b4d commit bbf0505
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/phoenix/ext/daedalus_classes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ namespace phoenix {
var float open_duration;
var float user_float[user_item_count];
var string user_string[user_item_count];
var int32_t frame_posx;
var int32_t frame_posy;
var int32_t frame_sizex;
var int32_t frame_sizey;
var string hide_if_option_section_set;
Expand Down Expand Up @@ -1315,6 +1317,12 @@ namespace phoenix {
s.register_member("C_MENU_ITEM.FRAMESIZEX", &c_menu_item::frame_sizex);
s.register_member("C_MENU_ITEM.FRAMESIZEY", &c_menu_item::frame_sizey);

// switch
if (s.find_symbol_by_name("C_MENU_ITEM.FRAMEPOSX") != nullptr) {
s.register_member("C_MENU_ITEM.FRAMEPOSX", &c_menu_item::frame_posx);
s.register_member("C_MENU_ITEM.FRAMEPOSY", &c_menu_item::frame_posy);
}

// Gothic 2 only
if (s.find_symbol_by_name("C_MENU_ITEM.HIDEIFOPTIONSECTIONSET") != nullptr) {
s.register_member("C_MENU_ITEM.HIDEIFOPTIONSECTIONSET", &c_menu_item::hide_if_option_section_set);
Expand Down

0 comments on commit bbf0505

Please sign in to comment.