mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6ca9d59443
* Merge ACEX - first attempt Backwards compatibility with XGVAR set of macros used on all settings and config entries Public API functions not taken into account yet, many other things probably still missed * Resolve issues * Switch to addSetting, backward compatible CfgPatches, missed XGVAR. * Remove unnecessary backwards compat * Convert ACEX Categorised settings to initSettings / Fix Intel items magazine * Apply suggestions from code review Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Remove maintainers from merged ACEX components * Cleanup unused module and faction classes * Sitting - Add more object configs by @Dystopian https://github.com/acemod/ACEX/pull/255 * Translations - Add Japanese by @classicarma https://github.com/acemod/ACEX/pull/259 * Kill Tracker - Add killtracker.inc public include file by @Freddo3000" https://github.com/acemod/ACEX/pull/251 * Add ACEX authors and sort authors file * acex - final tweaks (#8513) * acex - handle old funcs * replace thirst/hunger setvars to acex naming fix macro Revert "fix macro" This reverts commit d807e5e804c43916eaa42d34a89af94c6d9a48ad. Revert "replace thirst/hunger setvars to acex naming" This reverts commit bafc607884932d6e339daedc7c22e25dddbdd868. x Co-authored-by: TyroneMF <TyroneMF@hotmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
190 lines
5.5 KiB
C++
190 lines
5.5 KiB
C++
class ctrlStatic;
|
|
class ctrlStaticMulti;
|
|
class ctrlEditMulti;
|
|
class ctrlButtonPicture;
|
|
class ctrlStaticPictureKeepAspect;
|
|
class ctrlControlsGroupNoScrollbars;
|
|
|
|
class GVAR(RscBase): ctrlControlsGroupNoScrollbars {
|
|
idc = -1;
|
|
x = 0;
|
|
y = 0;
|
|
w = POS_W(15);
|
|
h = POS_H(18);
|
|
class controls {
|
|
class Border: ctrlStatic {
|
|
idc = IDC_BORDER;
|
|
x = 0;
|
|
y = 0;
|
|
w = POS_W(15);
|
|
h = POS_H(18);
|
|
colorBackground[] = {0, 0, 0, 1};
|
|
};
|
|
class Background: ctrlStatic {
|
|
idc = IDC_BACKGROUND;
|
|
x = pixelW;
|
|
y = pixelH;
|
|
w = POS_W(15) - 2 * pixelW;
|
|
h = POS_H(18) - 2 * pixelH;
|
|
colorBackground[] = {1, 1, 1, 1};
|
|
};
|
|
class Header: ctrlStatic {
|
|
idc = IDC_HEADER;
|
|
style = ST_MULTI + ST_NO_RECT;
|
|
x = 0;
|
|
y = 0;
|
|
w = POS_W(14.3);
|
|
h = POS_H(0.7);
|
|
sizeEx = POS_H(0.65);
|
|
colorBackground[] = {0.1, 0.1, 0.1, 1};
|
|
};
|
|
class Close: ctrlButtonPicture {
|
|
idc = IDC_CLOSE;
|
|
text = "\a3\3DEN\Data\Displays\Display3DEN\search_end_ca.paa";
|
|
x = POS_W(14.3);
|
|
y = 0;
|
|
w = POS_W(0.7);
|
|
h = POS_H(0.7);
|
|
offsetPressedX = 0;
|
|
offsetPressedY = 0;
|
|
colorBackground[] = {0.1, 0.1, 0.1, 1};
|
|
};
|
|
};
|
|
};
|
|
|
|
class GVAR(RscNotepad): GVAR(RscBase) {
|
|
class controls: controls {
|
|
class Border: Border {};
|
|
class Background: Background {
|
|
colorBackground[] = {0.97, 0.91, 0.77, 1};
|
|
};
|
|
class Header: Header {
|
|
text = CSTRING(Notepad_DisplayName);
|
|
};
|
|
class Close: Close {};
|
|
class Content: ctrlEditMulti {
|
|
idc = IDC_CONTENT;
|
|
style = ST_MULTI + ST_NO_RECT;
|
|
font = "EtelkaMonospaceProBold";
|
|
x = pixelW;
|
|
y = POS_H(0.7);
|
|
w = POS_W(15) - 2 * pixelW;
|
|
h = POS_H(17.3) - pixelH;
|
|
sizeEx = POS_H(0.9);
|
|
shadow = 0;
|
|
colorText[] = {0, 0, 0, 1};
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
};
|
|
};
|
|
};
|
|
|
|
class GVAR(RscDocument): GVAR(RscBase) {
|
|
class controls: controls {
|
|
class Border: Border {};
|
|
class Background: Background {
|
|
colorBackground[] = {0.95, 0.95, 0.95, 1};
|
|
};
|
|
class Header: Header {
|
|
text = CSTRING(Document_DisplayName);
|
|
};
|
|
class Close: Close {};
|
|
class Content: ctrlStaticMulti {
|
|
idc = IDC_CONTENT;
|
|
font = "EtelkaMonospaceProBold";
|
|
x = pixelW;
|
|
y = POS_H(0.7);
|
|
w = POS_W(15) - 2 * pixelW;
|
|
h = POS_H(17.3) - pixelH;
|
|
sizeEx = POS_H(0.9);
|
|
shadow = 0;
|
|
colorText[] = {0, 0, 0, 1};
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
};
|
|
};
|
|
};
|
|
|
|
class GVAR(RscPhoto): GVAR(RscBase) {
|
|
w = POS_W(18);
|
|
class controls: controls {
|
|
class Border: Border {
|
|
w = POS_W(18);
|
|
};
|
|
class Background: Background {
|
|
w = POS_W(18) - 2 * pixelW;
|
|
};
|
|
class Header: Header {
|
|
text = CSTRING(Photo_DisplayName);
|
|
w = POS_W(17.3);
|
|
};
|
|
class Close: Close {
|
|
x = POS_W(17.3);
|
|
};
|
|
class Content: ctrlStaticPictureKeepAspect {
|
|
idc = IDC_CONTENT;
|
|
x = pixelW;
|
|
y = POS_H(0.7);
|
|
w = POS_W(18) - 2 * pixelW;
|
|
h = POS_H(17.3) - pixelH;
|
|
};
|
|
};
|
|
};
|
|
|
|
// Zeus Attributes Display
|
|
class RscText;
|
|
class RscEditMulti;
|
|
class RscControlsGroup;
|
|
class RscControlsGroupNoScrollbars;
|
|
|
|
class RscDisplayAttributes {
|
|
class Controls {
|
|
class Background;
|
|
class Title;
|
|
class Content: RscControlsGroup {
|
|
class controls;
|
|
};
|
|
class ButtonOK;
|
|
class ButtonCancel;
|
|
};
|
|
};
|
|
|
|
class GVAR(RscSetData): RscDisplayAttributes {
|
|
onLoad = QUOTE([ARR_3('onLoad', _this, QQGVAR(RscSetData))] call EFUNC(zeus,zeusAttributes));
|
|
onUnload = QUOTE([ARR_3('onUnload', _this, QQGVAR(RscSetData))] call EFUNC(zeus,zeusAttributes));
|
|
class Controls: Controls {
|
|
class Background: Background {};
|
|
class Title: Title {};
|
|
class Content: Content {
|
|
class Controls {
|
|
class setData: RscControlsGroupNoScrollbars {
|
|
onSetFocus = QUOTE(_this call FUNC(attributeFocus));
|
|
idc = IDC_ATTRIBUTE_GROUP;
|
|
x = 0;
|
|
y = 0;
|
|
w = POS_W(26);
|
|
h = POS_H(6);
|
|
class controls {
|
|
class Label: RscText {
|
|
idc = IDC_ATTRIBUTE_LABEL;
|
|
x = 0;
|
|
y = 0;
|
|
w = POS_W(26);
|
|
h = POS_H(1);
|
|
colorBackground[] = {0, 0, 0, 0.5};
|
|
};
|
|
class Edit: RscEditMulti {
|
|
idc = IDC_ATTRIBUTE_EDIT;
|
|
x = pixelW;
|
|
y = POS_H(1) + pixelH;
|
|
w = POS_W(26) - pixelW;
|
|
h = POS_H(5) - pixelH;
|
|
sizeEx = POS_H(0.9);
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
class ButtonOK: ButtonOK {};
|
|
class ButtonCancel: ButtonCancel {};
|
|
};
|
|
};
|