mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Potato!
This commit is contained in:
parent
9bc0889037
commit
c1d7935037
@ -79,6 +79,7 @@ DMS_SpawnMissions_Scheduled = false; // Whether or not to spawn missions in a sc
|
|||||||
|
|
||||||
/*Mission Marker settings*/
|
/*Mission Marker settings*/
|
||||||
DMS_ShowDifficultyColorLegend = true; // Whether or not to show a "color legend" at the bottom left of the map that shows which color corresponds to which difficulty. I know it's not very pretty, meh.
|
DMS_ShowDifficultyColorLegend = true; // Whether or not to show a "color legend" at the bottom left of the map that shows which color corresponds to which difficulty. I know it's not very pretty, meh.
|
||||||
|
DMS_ShowMarkerCircle = false; // Whether or not to show the colored "circle" around a mission marker.
|
||||||
DMS_MarkerText_ShowMissionPrefix = true; // Whether or not to place a prefix before the mission marker text. Enable this if your players get confused by the marker names :P
|
DMS_MarkerText_ShowMissionPrefix = true; // Whether or not to place a prefix before the mission marker text. Enable this if your players get confused by the marker names :P
|
||||||
DMS_MarkerText_MissionPrefix = "Mission:"; // The text displayed before the mission name in the mission marker.
|
DMS_MarkerText_MissionPrefix = "Mission:"; // The text displayed before the mission name in the mission marker.
|
||||||
DMS_MarkerText_ShowAICount = true; // Whether or not to display the number of remaining AI in the marker name.
|
DMS_MarkerText_ShowAICount = true; // Whether or not to display the number of remaining AI in the marker name.
|
||||||
|
@ -165,27 +165,44 @@ if (DMS_ShowDifficultyColorLegend) then
|
|||||||
_title setMarkerType "mil_dot";
|
_title setMarkerType "mil_dot";
|
||||||
_title setMarkerAlpha 0.5;
|
_title setMarkerAlpha 0.5;
|
||||||
{
|
{
|
||||||
private ["_difficulty", "_color", "_num", "_pos", "_circle", "_dot"];
|
private _difficulty = _x;
|
||||||
|
|
||||||
|
private _color = "ColorGreen";
|
||||||
|
private _markerType = "ExileMissionEasyIcon";
|
||||||
|
|
||||||
|
|
||||||
_difficulty = _x;
|
|
||||||
switch (_difficulty) do
|
switch (_difficulty) do
|
||||||
{
|
{
|
||||||
case "easy": {_color = "ColorGreen";};
|
case "moderate":
|
||||||
case "moderate": {_color = "ColorYellow";};
|
{
|
||||||
case "difficult": {_color = "ColorRed";};
|
_color = "ColorYellow";
|
||||||
case "hardcore" : {_color = "ColorBlack";};
|
_marker = "ExileMissionModerateIcon";
|
||||||
|
};
|
||||||
|
case "difficult":
|
||||||
|
{
|
||||||
|
_color = "ColorRed";
|
||||||
|
_marker = "ExileMissionDifficultIcon";
|
||||||
|
};
|
||||||
|
case "hardcore":
|
||||||
|
{
|
||||||
|
_color = "ColorBlack";
|
||||||
|
_marker = "ExileMissionHardcoreIcon";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_num = -200 * (_forEachIndex - 0.5);
|
private _num = -200 * (_forEachIndex - 0.5);
|
||||||
_pos = [100,_num];
|
private _pos = [100,_num];
|
||||||
|
|
||||||
_circle = createMarker [format ["DMS_MissionMarker_DifficultyColor_%1",_color], _pos];
|
if (DMS_ShowMarkerCircle) then
|
||||||
|
{
|
||||||
|
private _circle = createMarker [format ["DMS_MissionMarker_DifficultyColor_%1",_color], _pos];
|
||||||
_circle setMarkerColor _color;
|
_circle setMarkerColor _color;
|
||||||
_circle setMarkerShape "ELLIPSE";
|
_circle setMarkerShape "ELLIPSE";
|
||||||
_circle setMarkerBrush "Solid";
|
_circle setMarkerBrush "Solid";
|
||||||
_circle setMarkerSize [100,100];
|
_circle setMarkerSize [100,100];
|
||||||
|
};
|
||||||
|
|
||||||
_dot = createMarker [format ["DMS_MissionMarker_Difficulty_%1",_difficulty],_pos];
|
private _dot = createMarker [format ["DMS_MissionMarker_Difficulty_%1",_difficulty],_pos];
|
||||||
_dot setMarkerColor "ColorWhite";
|
_dot setMarkerColor "ColorWhite";
|
||||||
_dot setMarkerType "mil_dot";
|
_dot setMarkerType "mil_dot";
|
||||||
_dot setMarkerAlpha 0.5;
|
_dot setMarkerAlpha 0.5;
|
||||||
|
@ -45,18 +45,42 @@ private _randomMarker =
|
|||||||
|
|
||||||
private _num = DMS_MissionCount;
|
private _num = DMS_MissionCount;
|
||||||
|
|
||||||
private _color =
|
private _color = "ColorGreen";
|
||||||
switch (_difficulty) do
|
private _markerType = "mil_dot";
|
||||||
|
|
||||||
|
|
||||||
|
switch (toLower _difficulty) do
|
||||||
|
{
|
||||||
|
case "easy":
|
||||||
{
|
{
|
||||||
case "easy": {"ColorGreen";};
|
_color = "ColorGreen";
|
||||||
case "moderate": {"ColorYellow";};
|
_markerType = "ExileMissionEasyIcon";
|
||||||
case "difficult": {"ColorRed";};
|
};
|
||||||
case "hardcore" : {"ColorBlack";};
|
case "moderate":
|
||||||
default {_difficulty;};
|
{
|
||||||
|
_color = "ColorYellow";
|
||||||
|
_marker = "ExileMissionModerateIcon";
|
||||||
|
};
|
||||||
|
case "difficult":
|
||||||
|
{
|
||||||
|
_color = "ColorRed";
|
||||||
|
_marker = "ExileMissionDifficultIcon";
|
||||||
|
};
|
||||||
|
case "hardcore":
|
||||||
|
{
|
||||||
|
_color = "ColorBlack";
|
||||||
|
_marker = "ExileMissionHardcoreIcon";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
default
|
||||||
|
{
|
||||||
|
_color = _difficulty;
|
||||||
|
_marker = "mil_dot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Don't think this is really needed
|
// Don't think this is really needed, ArmA gives you an error anyways.
|
||||||
if !((toLower _color) in DMS_A3_AllMarkerColors) then
|
if !((toLower _color) in DMS_A3_AllMarkerColors) then
|
||||||
{
|
{
|
||||||
diag_log format ["DMS ERROR :: Color ""%1"" is not a valid marker color! Switching to ""ColorRed""",_color];
|
diag_log format ["DMS ERROR :: Color ""%1"" is not a valid marker color! Switching to ""ColorRed""",_color];
|
||||||
@ -65,14 +89,18 @@ if !((toLower _color) in DMS_A3_AllMarkerColors) then
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
private _circle = createMarker [format ["DMS_MissionMarkerCircle%1_%2",_num,round(time)], _pos];
|
private _circle = createMarker [format ["DMS_MissionMarkerCircle%1_%2",_num,round(time)], _pos];
|
||||||
_circle setMarkerColor _color;
|
|
||||||
_circle setMarkerShape "ELLIPSE";
|
if (DMS_ShowMarkerCircle) then
|
||||||
_circle setMarkerBrush "Solid";
|
{
|
||||||
_circle setMarkerSize [150,150];
|
_circle setMarkerColor _color;
|
||||||
|
_circle setMarkerShape "ELLIPSE";
|
||||||
|
_circle setMarkerBrush "Solid";
|
||||||
|
_circle setMarkerSize [150,150];
|
||||||
|
};
|
||||||
|
|
||||||
private _dot = createMarker [format ["DMS_MissionMarkerDot%1_%2",_num,round(time)], _pos];
|
private _dot = createMarker [format ["DMS_MissionMarkerDot%1_%2",_num,round(time)], _pos];
|
||||||
_dot setMarkerColor "ColorBlack";
|
_dot setMarkerColor "ColorBlack";
|
||||||
_dot setMarkerType "mil_dot";
|
_dot setMarkerType _markerType;
|
||||||
_dot setMarkerText _text;
|
_dot setMarkerText _text;
|
||||||
|
|
||||||
missionNamespace setVariable [format ["%1_pos",_dot], _pos];
|
missionNamespace setVariable [format ["%1_pos",_dot], _pos];
|
||||||
|
@ -154,6 +154,13 @@ ___
|
|||||||
# Changelog:
|
# Changelog:
|
||||||
|
|
||||||
### Main Branch
|
### Main Branch
|
||||||
|
### July 11, 2016 (5:20 PM CST-America):
|
||||||
|
* **NEW CONFIG VALUE**
|
||||||
|
|
||||||
|
DMS_ShowMarkerCircle
|
||||||
|
* DMS now uses the new marker icons added in Exile v1.0.0
|
||||||
|
|
||||||
|
|
||||||
### July 9, 2016 (8:40 PM CST-America):
|
### July 9, 2016 (8:40 PM CST-America):
|
||||||
* **NEW CONFIG VALUES**
|
* **NEW CONFIG VALUES**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user