CameraChick

[SOLVED] Spawn Selection Screen (Map Removal)

6 posts in this topic

On the Spawn Selection screen, the map is shown. How can I modify this code so the map cannot be seen?


private["_display","_spawnButton","_listBox","_listItemIndex","_numberOfSpawnPoints","_randNum","_randData","_randomSpawnIndex"];
disableSerialization;
diag_log "Selecting spawn location...";
ExileClientSpawnLocationSelectionDone = false;
ExileClientSelectedSpawnLocationMarkerName = "";
createDialog "RscExileSelectSpawnLocationDialog";
waitUntil
{
    _display = findDisplay 24002;
    !isNull _display
};
_spawnButton = _display displayCtrl 24003;
_spawnButton ctrlEnable false;
_display displayAddEventHandler ["KeyDown", "_this call ExileClient_gui_loadingScreen_event_onKeyDown"];
_listBox = _display displayCtrl 24002;
lbClear _listBox;

{
    if (getMarkerType _x == "ExileSpawnZone") then
    {
     _listItemIndex = _listBox lbAdd (markerText _x);
     _listBox lbSetData [_listItemIndex, _x];
    };
}
forEach allMapMarkers;

_numberOfSpawnPoints = {getMarkerType _x == "ExileSpawnZone"} count allMapMarkers;

if (_numberOfSpawnPoints > 0) then
{
    _randNum = floor(random _numberOfSpawnPoints);
    _randData = lbData [24002,_randNum];
    lbClear _listBox;        // Clears all options execpt Random from the spawn selection dialog
    _randomSpawnIndex = _listBox lbAdd "Random";
    _listBox lbSetData [_randomSpawnIndex, _randData];
};
true

 

Edited by CameraChick

Share this post


Link to post
Share on other sites
Advertisement
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.