Exemplo n.º 1
0
        public LoadScaleform Create(string text = "Loading...")
        {
            var scaleform     = new Scaleform("instructional_buttons");
            var loadScaleform = new LoadScaleform(false, text, scaleform);

            loadScaleform.Scaleform.CallFunction("CLEAR_ALL");
            loadScaleform.Scaleform.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
            loadScaleform.Scaleform.CallFunction("CREATE_CONTAINER");
            loadScaleform.Text = text;
            loadScaleform.Scaleform.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
            _loadScaleforms.Add(loadScaleform);
            return(loadScaleform);
        }
Exemplo n.º 2
0
 public void RemoveLoadScaleform(LoadScaleform scaleform)
 {
     _loadScaleforms.Remove(scaleform);
 }