// Function from file: action.dm public virtual void ApplyIcon(Obj_Screen_Movable_ActionButton current_button = null) { Image img = null; current_button.overlays.Cut(); if (Lang13.Bool(this.button_icon) && Lang13.Bool(this.button_icon_state)) { img = new Image(this.button_icon, current_button, this.button_icon_state); img.pixel_x = 0; img.pixel_y = 0; current_button.overlays.Add(img); } return; }
// Function from file: action.dm public virtual void Remove(dynamic T = null) { if (this.button != null) { if (Lang13.Bool(T.client)) { T.client.screen -= this.button; } GlobalFuncs.qdel(this.button); this.button = null; } T.actions.Remove(this); ((Mob)T).update_action_buttons(); this.owner = null; return; }
// Function from file: action.dm public override void ApplyIcon(Obj_Screen_Movable_ActionButton current_button = null) { dynamic I = null; double old = 0; current_button.overlays.Cut(); if (Lang13.Bool(this.target)) { I = this.target; old = Convert.ToDouble(I.layer); I.layer = GlobalVars.FLOAT_LAYER; current_button.overlays.Add(I); I.layer = old; } return; }