3 TextListboxWidget m_KeyBindingsTextListboxWidget;
4 TextListboxWidget m_MouseBindingsTextListboxWidget;
6 ButtonWidget m_CloseConsoleButton;
19 PluginKeyBinding module_keybinding = PluginKeyBinding.Cast(
GetPlugin(PluginKeyBinding) );
21 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/help_screen.layout");
22 m_KeyBindingsTextListboxWidget = TextListboxWidget.Cast( layoutRoot.FindAnyWidget(
"KeyBindingsTextListboxWidget") );
23 m_MouseBindingsTextListboxWidget = TextListboxWidget.Cast( layoutRoot.FindAnyWidget(
"MouseBindingsTextListboxWidget") );
26 for (
int i = 0; i < keybindings.Count(); i++ )
28 m_KeyBindingsTextListboxWidget.AddItem( keybindings.Get(i).GetInfoBind(), NULL, 0 );
29 m_KeyBindingsTextListboxWidget.SetItem( i, keybindings.Get(i).GetInfoDescription(), NULL, 1 );
33 for ( i = 0; i < mousebindings.Count(); i++ )
35 m_MouseBindingsTextListboxWidget.AddItem( mousebindings.Get(i).GetInfoBind(), NULL, 0 );
36 m_MouseBindingsTextListboxWidget.SetItem( i, mousebindings.Get(i).GetInfoDescription(), NULL, 1 );
39 m_CloseConsoleButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget(
"CloseButtonWidget") );
46 super.OnClick(w,
x,
y, button);
48 if ( w == m_CloseConsoleButton )