public void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "ItemSelected") { ltItemChanged = lt; } }
public override void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "TextChanged") { ((TextBox)view).TextChanged += new TextChangedEventHandler(delegate(object sender, TextChangedEventArgs e) { lt.CallIn(sender); }); } else if (var == "BeforeTextChanged") { ((TextBox)view).TextChanged += new TextChangedEventHandler(delegate(object sender, TextChangedEventArgs e) { lt.CallIn(sender); }); } else if (var == "AfterTextChanged") { ((TextBox)view).TextChanged += new TextChangedEventHandler(delegate(object sender, TextChangedEventArgs e) { lt.CallIn(sender); }); } else { base.RegisterEventFunction(var, lt); } }
public LuaService(MtaServer server, ILogger logger, RootElement root) { this.server = server; this.logger = logger; this.root = root; this.scripts = new Dictionary <string, Script>(); this.methods = new Dictionary <string, LuaMethod>(); this.translator = new LuaTranslator(); }
public override void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "CheckedChanged") { ((RadioButton)view).Checked += new RoutedEventHandler(delegate(object sender, RoutedEventArgs e) { lt.CallIn(sender); }); } else { base.RegisterEventFunction(var, lt); } }
public virtual void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "Click") { #if WINDOWS_PHONE view.Tap += new EventHandler <GestureEventArgs>(delegate(object sender, GestureEventArgs e) { lt.CallIn(sender); }); #elif NETFX_CORE view.Tapped += new TappedEventHandler(delegate(object sender, TappedRoutedEventArgs e) { lt.CallIn(sender); }); #endif } }
public override void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "Changed") { #if NETFX_CORE ((WinRTDatePicker.DatePicker) view).SelectedDateChanged += new EventHandler <SelectedDateChangedEventArgs>(delegate(object sender, SelectedDateChangedEventArgs e) #else ((DatePicker)view).ValueChanged += new EventHandler <DateTimeValueChangedEventArgs>(delegate(object sender, DateTimeValueChangedEventArgs e) #endif { lt.CallIn(sender); }); } else { base.RegisterEventFunction(var, lt); } }
public override void RegisterEventFunction(string var, LuaTranslator lt) { if (var == "Changed") { #if WINDOWS_PHONE ((EditableComboBox)view).SelectionChanged += new RoutedEventHandler(delegate(object sender, RoutedEventArgs e) #else ((EditableComboBox)view).SelectionChanged += new SelectionChangedEventHandler(delegate(object sender, SelectionChangedEventArgs e) #endif { LuaScriptingEngine.CustomControls.EditableComboBox.ComboData cd = ((EditableComboBox)sender).SelectedData; lt.CallIn(cd.name, cd.tag); }); } else { base.RegisterEventFunction(var, lt); } }
public void RegisterEventFunction(string var, LuaTranslator lt) { }
public PostSubmitter(HttpWebRequest httpclient, LuaTranslator onComplete, LuaTranslator onFail) { this.httpclient = httpclient; this.onComplete = onComplete; this.onFail = onFail; }