mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Resize, User Option, Localization
This commit is contained in:
parent
3c3affa69f
commit
a0f4ea4e93
@ -6,4 +6,10 @@ class ACE_Settings {
|
||||
displayName = CSTRING(uiScaing);
|
||||
values[] = {"$str_medium", "$str_large", "$str_very_large"};
|
||||
};
|
||||
class GVAR(showNewsOnMainMenu) {
|
||||
value = 1;
|
||||
typeName = "BOOL";
|
||||
isClientSettable = 1;
|
||||
displayName = CSTRING(showNewsOnMainMenu_name);
|
||||
};
|
||||
};
|
||||
|
@ -108,15 +108,14 @@ class RscDisplayMain: RscStandardDisplay {
|
||||
};
|
||||
|
||||
class ACE_news: RscControlsGroupNoScrollbars {
|
||||
idc = -1;
|
||||
idc = 80086;
|
||||
x = "safezoneX + safezoneW - (31 * (((safezoneW / safezoneH) min 1.2) / 40))";
|
||||
y = "safezoneY + (1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))";
|
||||
w = "15 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "16.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
class controls
|
||||
{
|
||||
h = "8.25 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
class controls {
|
||||
class ACE_NewsTitle: RscText {
|
||||
text = "ACE News";
|
||||
text = CSTRING(aceNews);
|
||||
colorBackground[] = {(162/255),(28/255),(28/255),0.8};
|
||||
idc = -1;
|
||||
x = "0 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
@ -124,29 +123,28 @@ class RscDisplayMain: RscStandardDisplay {
|
||||
w = "15 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
};
|
||||
class ACE_VersionInfo: RscText
|
||||
{
|
||||
class ACE_VersionInfo: RscText {
|
||||
idc = 68;
|
||||
x = "0 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
y = "1.1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
w = "15 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
colorBackground[] = {0,0,0,0.4};
|
||||
colorBackground[] = {0,0,0,0.666};
|
||||
};
|
||||
class ACE_NewsBackground: RscText {
|
||||
idc = -1;
|
||||
x = "0 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
y = "2.2 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
w = "15 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "14 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
colorBackground[] = {0,0,0,0.4};
|
||||
h = "5.75 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
colorBackground[] = {0,0,0,0.666};
|
||||
};
|
||||
class ACE_NewsText: RscHTML {
|
||||
idc = 69;
|
||||
x = "0 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
y = "2.1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
w = "15 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "14.2 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
h = "5.95 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
|
||||
shadow = 0;
|
||||
class H1 {
|
||||
|
@ -18,8 +18,14 @@
|
||||
if (missionNamespace getVariable [QGVAR(newsLoaded), false]) exitWith {};
|
||||
GVAR(newsLoaded) = true;
|
||||
|
||||
private ["_version"];
|
||||
_version = getText (configFile >> "CfgPatches" >> "ace_main" >> "versionStr");
|
||||
//Need to load from profileNamespace because ace_settings might not be init if world = empty
|
||||
if (profileNamespace getVariable [QGVAR(showNewsOnMainMenu), true]) then {
|
||||
((_this select 0) displayCtrl 80086) ctrlShow true;
|
||||
|
||||
((_this select 0) displayCtrl 68) ctrlSetText format ["Installed Version: %1", _version];
|
||||
((_this select 0) displayCtrl 69) htmlLoad "http://ace3mod.com/version.html";
|
||||
private ["_version"];
|
||||
_version = getText (configFile >> "CfgPatches" >> "ace_main" >> "versionStr");
|
||||
((_this select 0) displayCtrl 68) ctrlSetText format ["Installed Version: %1", _version];
|
||||
((_this select 0) displayCtrl 69) htmlLoad "http://ace3mod.com/version.html";
|
||||
} else {
|
||||
((_this select 0) displayCtrl 80086) ctrlShow false;
|
||||
};
|
||||
|
@ -315,5 +315,11 @@
|
||||
<English>Sends debug information to RPT and clipboard.</English>
|
||||
<Polish>Wysyła informacje o debugowaniu do RPT oraz schowka.</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_OptionsMenu_aceNews">
|
||||
<English>ACE News</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_OptionsMenu_showNewsOnMainMenu_name">
|
||||
<English>Show News on Main Menu</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user