Completly re-structure of the journal main page

Now actual useful information can be read there. Besides a short player overview a few server settings can be found there.
This commit is contained in:
AirwavesMan
2020-09-13 02:24:34 +02:00
parent c3c67b3529
commit ef05eb4e09
2 changed files with 94 additions and 76 deletions

View File

@@ -1,86 +1,61 @@
private ["_currentTime","_totalMins","_days","_hours","_mins","_ys","_ms","_ds","_b","_2","_6","_7","_8","_9","_10","_str_left_text","_1","_3","_4","_5","_blood_in_pack","_blood_in_inv","_mag_arr","_backpack","_11","_mags_for_weap","_mssv_cnt","_weapon","_config","_survivors","_moon","_spawnselection","_disabledTemperature"]; private ["_currentTime","_totalMins","_days","_hours","_mins","_base","_plots","_currency","_pve","_b","_survived"];
_survivors = playersNumber west;
_str_left_text = "
<t size = '1.4' font = 'Zeppelin33' color = '#000000' shadow = 'false' align = 'left'>
"+(localize "str_playerstats_journal_1")+"
<br />
<br />
"+(localize "str_playerstats_journal_2")+"
<br />
<br />
%7%8%9 %10
<br />
<br />
%11
</t>
";
_1 = name player;
dayz_currentGlobalZombies = count entities "zZombie_Base";
//Work out survival time
_currentTime = floor ((diag_tickTime - dayz_loginTime) / 60); _currentTime = floor ((diag_tickTime - dayz_loginTime) / 60);
_totalMins = (player getVariable "SurvivalTime") + _currentTime; _totalMins = (player getVariable "SurvivalTime") + _currentTime;
_days = floor (_totalMins / 1440); _days = floor (_totalMins / 1440);
_totalMins = (_totalMins - (_days * 1440)); _totalMins = (_totalMins - (_days * 1440));
_hours = floor (_totalMins / 60); _hours = floor (_totalMins / 60);
_mins = (_totalMins - (_hours * 60)); _mins = (_totalMins - (_hours * 60));
dayz_Survived = [_days,_hours,_mins,_totalMins]; dayz_Survived = [_days,_hours,_mins,_totalMins];
_survived = format["%1 %2, %3 %4, %5 %6",(dayz_Survived select 0),localize "STR_EPOCH_JOURNAL_DAYS",(dayz_Survived select 1),localize "STR_EPOCH_JOURNAL_HOURS",(dayz_Survived select 2),localize "STR_EPOCH_JOURNAL_MINUTES"];
_base = ["STR_EP1_dogfighters_params09","STR_EP1_dogfighters_params08"] select (DZE_GodModeBase);
_plots = [localize "str_ep1_mpt_param1_5",DZE_limitPlots] select (DZE_limitPlots > 0);
_currency = [localize "STR_EPOCH_GOLD",CurrencyName] select (Z_SingleCurrency);
_pve = ["str_temp_param_disabled","str_temp_param_enabled"] select (DZE_PVE_Mode);
_moon = if (dayz_ForcefullmoonNights) then { "Yes" } else { "No" }; // left page
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1800) ctrlSetStructuredText parseText format ["
_spawnselection = switch (dayz_spawnselection) do { <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%1: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%2</t><br/>
case 1: { "Yes" }; <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%3: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%4</t><br/>
case 0: { "No" }; <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%5: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%6</t><br/>
}; <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%7: </t><t size='1.2' font='Zeppelin33' align='right' color='#FF0033'>%8</t><br/>
<br />
_disabledTemperature = switch (dayz_temperature_override) do { <t size='1.5' font='Zeppelin33' color = '#000000' align='left'>%9</t><br/>
case true: { "Disabled" }; <br/>
case false: { "Enabled" }; <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%10: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%11</t><br/>
}; <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%12: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%13</t><br/>
<t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%14: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%15</t><br/>
// left page <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%16: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%17</t><br/>
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1800) ctrlSetStructuredText parseText format [" <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%18: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%19</t><br/>
<t size='2' font='Zeppelin33' color = '#000000' align='center'>Survival Type: %14</t><br/> <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%20 %21: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%22</t><br/>
<br/> <t size='1.3' font='Zeppelin33' color = '#000000' align='left'>%23 %24: </t><t size='1.3' font='Zeppelin33' align='right' color='#FF0033'>%25</t><br/>
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Health: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%1</t><br/> ",
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Hunger: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%2%</t><br/> localize "STR_EPOCH_JOURNAL_Name", // 1
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Thirst: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%3%</t><br/> (name player), // 2
<br/> localize "STR_EPOCH_JOURNAL_HEALTH", // 3
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Temp: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%5/%13</t><br/> (round(r_player_blood)), // 4
<br /> localize "str_actions_stats_hm", // 5
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Humanity: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%6</t><br/> (round(player getVariable['humanity', 0])), // 6
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Zombies: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%7</t><br/> localize "STR_EPOCH_JOURNAL_SURVIVED", // 7
<br /> _survived, // 8
<t size='2' font='Zeppelin33' color = '#000000' align='left'>SpawnSelection: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%4</t><br/> localize "STR_EPOCH_JOURNAL_SERVER_SETTINGS", // 9
<t size='2' font='Zeppelin33' color = '#000000' align='left'>Full Moon: </t><t size='2' font='Zeppelin33' align='right' color='#FF0033'>%12</t><br/> localize "STR_EPOCH_JOURNAL_BASE", // 10
<br/> localize _base, // 11
<t size='2' font='Zeppelin33' color = '#000000' align='center'>Survived: %8 Day(s), %15 Hour(s), %16 Minute(s)</t><br/> localize "STR_EPOCH_JOURNAL_PLOT", // 12
<br /> _plots, // 13
<t size='2' font='Zeppelin33' color = '#000000' align='center'>Survivors:%9</t><br/> localize "STR_EPOCH_JOURNAL_BUILDINGLIMIT", // 14
<br/> DZE_BuildingLimit, // 15
<t size='2' font='Zeppelin33' color = '#000000' align='center'>FPS:%10, FPSMin:%11</t><br/> localize "STR_EPOCH_TRADER_CATEGORY_CURRENCY", // 16
", _currency, // 17
(round(r_player_blood)), localize "STR_EPOCH_JOURNAL_PVE", // 18
(round(dayz_hunger)), localize _pve, // 19
(round(dayz_thirst)), localize "str_actions_stats_hm", // 20
(_spawnselection), localize "str_playerstats_hero", // 21
(round(dayz_temperatur)), DZE_Hero, // 22
(round(player getVariable['humanity', 0])), localize "str_actions_stats_hm", // 23
(dayz_currentGlobalZombies), localize "str_playerstats_bandit", // 24
(dayz_Survived select 0), DZE_Bandit // 25
(_survivors), ];
(round diag_fps),
(round diag_fpsmin),
(_moon),
(_disabledTemperature),
(dayz_presets),
(dayz_Survived select 1),
(dayz_Survived select 2)
];
// right page - blank until humanity is checked // right page - blank until humanity is checked
@@ -94,4 +69,4 @@ _b = "<img size = '5' image = '\z\addons\dayz_communityassets\pictures\playersta
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1806) ctrlSetStructuredText parseText format ["%1", _b]; ((uiNamespace getVariable "horde_myDisplay") displayCtrl 1806) ctrlSetStructuredText parseText format ["%1", _b];
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1807) ctrlSetStructuredText parseText format ["%1", _b]; ((uiNamespace getVariable "horde_myDisplay") displayCtrl 1807) ctrlSetStructuredText parseText format ["%1", _b];
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1808) ctrlSetStructuredText parseText format ["%1", _b]; ((uiNamespace getVariable "horde_myDisplay") displayCtrl 1808) ctrlSetStructuredText parseText format ["%1", _b];
((uiNamespace getVariable "horde_myDisplay") displayCtrl 1809) ctrlSetStructuredText parseText format ["%1", _b]; ((uiNamespace getVariable "horde_myDisplay") displayCtrl 1809) ctrlSetStructuredText parseText format ["%1", _b];

View File

@@ -30226,7 +30226,50 @@
<Key ID="STR_EPOCH_WEIGHT"> <Key ID="STR_EPOCH_WEIGHT">
<English>Weight</English> <English>Weight</English>
<German>Gewicht</German> <German>Gewicht</German>
</Key> </Key>
<Key ID="STR_EPOCH_JOURNAL_Name">
<English>Name</English>
</Key>
<Key ID="STR_EPOCH_JOURNAL_HEALTH">
<English>Health</English>
<German>Gesundheit</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_SURVIVED">
<English>Survived</English>
<German>Überlebt</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_DAYS">
<English>Day(s)</English>
<German>Tag(e)</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_HOURS">
<English>Hour(s)</English>
<German>Stunde(n)</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_MINUTES">
<English>Minute(s)</English>
<German>Minute(n)</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_SERVER_SETTINGS">
<English>Server Settings</English>
<German>Servereinstellungen</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_BASE">
<English>Indestructible Bases</English>
<German>Unzerstörbare Basen</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_PLOT">
<English>Plot Poles</English>
<German>Grundstücksmarkierungen</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_BUILDINGLIMIT">
<English>Build Limit</English>
<German>Baulimit</German>
</Key>
<Key ID="STR_EPOCH_JOURNAL_PVE">
<English>PVE Mode</English>
<German>PVE-Modus</German>
</Key>
<!--Fix for missing strings from the buildings3.pbo, this is just a placeholder--> <!--Fix for missing strings from the buildings3.pbo, this is just a placeholder-->
<Key ID="STR_FAL_Street_Sign"> <Key ID="STR_FAL_Street_Sign">