TrackManiaControl/application/core/FML/Script/Templates/MenuMouseClick.txt
Steffen Schröder fed96b36d0 FML Update
2013-11-28 07:30:00 +01:00

13 lines
373 B
Plaintext

foreach (MenuIds in C_FML_MenuIds) {
if (!MenuIds.existskey(Event.ControlId)) continue;
declare MenuId = MenuIds[Event.ControlId][0];
declare SubMenuIds = MenuIds["__FML__Sub__Menus__"];
foreach (SubMenuId in SubMenuIds) {
declare SubMenu <=> Page.GetFirstChild(SubMenuId);
if (SubMenu == Null) continue;
SubMenu.Visible = (SubMenu.ControlId == MenuId);
}
}