MysticalDragon |
10-06-2014 09:23 PM |
F5 Edit Gmap or Precise Level
1 Attachment(s)
Here is a small system that can help your LATs get the coordinates on the gmap or the coordinates to the exact level(with the help of Pix). When you press f5, there is a option that allows you to switch the view. Figured this can be used so I'm sharing it.
PHP Code:
findplayer("MysticalDragon").addWeapon(this); //#CLIENTSIDE
function LoadLevelWindow.onShow() { this.old_x = LoadLevelXField.text; this.old_y = LoadLevelYField.text; temp.guiCheckBox = new GuiCheckBoxCtrl("LoadLevelShowGmap"); temp.guiCheckBox.profile = "GuiDelteriaCheckboxProfile"; temp.guiCheckBox.x = 10; temp.guiCheckBox.y = 80; temp.guiCheckBox.width = 200; temp.guiCheckBox.height = 20; temp.guiCheckBox.text = "Show GMAP instead of level"; temp.guiCheckBox.checked = true; temp.guiCheckBox.visible = true; ("LoadLevelWindow").addcontrol(temp.guiCheckBox); updateLoadLevelData(); }
function LoadLevelShowGmap.onAction() { updateLoadLevelData(); }
function updateLoadLevelData() { if ( LoadLevelShowGmap.checked ) { LoadLevelFilenameField.text = ( player.gmap.name != "" ? player.gmap.name : player.level.name ); LoadLevelXField.text = player.x; LoadLevelYField.text = player.y; } else { LoadLevelFilenameField.text = player.level.name; LoadLevelXField.text = this.old_x; LoadLevelYField.text = this.old_y; } }
In the title I meant view not edit, sorry for that.
|