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

Post the code in a code tag to start with, it makes it so much easier on everyone.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Not sure why you would want to do this but......

ctrlShow [24001, false];

 

Share this post


Link to post
Share on other sites
18 hours ago, Mezo said:

Not sure why you would want to do this but......


ctrlShow [24001, false];

 

Thanks, Mezo!  Any particular place that should be pasted?

Share this post


Link to post
Share on other sites

We have closed this thread and marked it as solved.

1 person likes this

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.