Increase class limit?

正在查看此主题的用户

Toasticuss

Sergeant
Currently I have made a bunch of new classes but they dont all show and the bottom class is un clickable. Is there a value I can increase to make it so I can scroll down to choose a different class?

Right now 12 show up but 11 are clickable, I need about 14

I thought I saw in some mod that the classes could be scrolled through and there wasnt a limit.
 
插入代码块:
      (position_set_x, pos1, 405),
      (position_set_y, pos1, 500),
      (overlay_set_area_size, "$g_presentation_obj_troop_select_container", pos1),
      (set_container_overlay, "$g_presentation_obj_troop_select_container"),
Fiddle around with those numbers, which should restrict the scrollable area. Otherwise, if you have more than 16 troops, you might want to change the following:
插入代码块:
multi_data_troop_button_indices_end = multi_data_troop_button_indices_begin + 16 #maximum 16 troops per faction
multi_data_item_button_indices_begin = multi_data_troop_button_indices_end
 
Somebody 说:
插入代码块:
      (position_set_x, pos1, 405),
      (position_set_y, pos1, 500),
      (overlay_set_area_size, "$g_presentation_obj_troop_select_container", pos1),
      (set_container_overlay, "$g_presentation_obj_troop_select_container"),
Fiddle around with those numbers, which should restrict the scrollable area. Otherwise, if you have more than 16 troops, you might want to change the following:
插入代码块:
multi_data_troop_button_indices_end = multi_data_troop_button_indices_begin + 16 #maximum 16 troops per faction
multi_data_item_button_indices_begin = multi_data_troop_button_indices_end

Thank you, but that isnt making a scrollable area, its showing more of the classes on the screen but they arent clickable and I can't scroll down =(


For anyone that wants to know you can find that line at 3166 in module_presentations.

 
Toasticuss 说:
插入代码块:
      (position_set_x, pos1, 405),
      (position_set_y, pos1, 500),
      (overlay_set_area_size, "$g_presentation_obj_troop_select_container", pos1),
      (set_container_overlay, "$g_presentation_obj_troop_select_container"),
Thank you, but that isnt making a scrollable area, its showing more of the classes on the screen but they arent clickable and I can't scroll down =(

Unfortunately I don't have the Mod Sys in front of me at the moment, but my guess is the container overlay stored in "$g_presentation_obj_troop_select_container" is a text overlay. Check what flags are included when that overlay is created and be sure the tf_scrollable (or something very similar...see header_presentantions for the correct text and other presentaitons for usage) is included. That's what needs to be added to have the scroll bar.
 
Caba`drin 说:
Toasticuss 说:
插入代码块:
      (position_set_x, pos1, 405),
      (position_set_y, pos1, 500),
      (overlay_set_area_size, "$g_presentation_obj_troop_select_container", pos1),
      (set_container_overlay, "$g_presentation_obj_troop_select_container"),
Thank you, but that isnt making a scrollable area, its showing more of the classes on the screen but they arent clickable and I can't scroll down =(

Unfortunately I don't have the Mod Sys in front of me at the moment, but my guess is the container overlay stored in "$g_presentation_obj_troop_select_container" is a text overlay. Check what flags are included when that overlay is created and be sure the tf_scrollable (or something very similar...see header_presentantions for the correct text and other presentaitons for usage) is included. That's what needs to be added to have the scroll bar.

I figured it out, all you need to do is increase the
      (assign, ":cur_y", 450),

value at line 3171 in module_presentations.

Instead of 450 make it 500 or so and you'll get a scroll bar.

All the other settings are fine.

Thanks again everyone!
 
后退
顶部 底部