Skip to content

Commit

Permalink
Add help link in top right corner
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi007 committed Dec 19, 2023
1 parent f7c2a6b commit 04b8bd6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions addons/markers/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
<Original>Direction of Movement:</Original>
<German>Bewegungsrichtung:</German>
</Key>
<Key ID="str_mts_markers_ui_general_helpTXT">
<Original>Help</Original>
<German>Hilfe</German>
</Key>
</Container>
<Container name="UI_dtg">
<Key ID="str_mts_markers_ui_dtg">
Expand Down
20 changes: 19 additions & 1 deletion addons/markers/ui/mts_markers_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class RscEdit;
class RscListBox;
class RscButtonSearch;
class RscControlsGroupNoScrollbars;
class RscStructuredText;
class RscTitle;
class RscFrame;
class RscXSliderH;
Expand Down Expand Up @@ -651,10 +652,27 @@ class GVAR(Dialog) {
idc = HEAD_TXT;
x = QPOS_X(0);
y = QPOS_Y(0);
w = QPOS_W(HEADER_W);
w = QPOS_W(HEADER_W / 2);
h = QPOS_H(HEADER_H);
text = CSTRING(ui_general_headTXT);
};
class Help: RscStructuredText {
idc = HEAD_HELP_TXT;
x = QPOS_X(HEADER_W / 2);
y = QPOS_Y(0);
w = QPOS_W(HEADER_W / 2);
h = QPOS_H(HEADER_H);
text = CSTRING(ui_general_helpTXT);
class Attributes
{
font = "RobotoCondensed";
color = "#ffffff";
colorLink = "#ffffff";
align = "right";
shadow = 1;
href = "https://github.com/Metis-Team/mts_marker/wiki/User-Manuel";
};
};

class Preview: GVAR(RscPreview) {
idc = PREVIEW_GROUP;
Expand Down
1 change: 1 addition & 0 deletions addons/markers/ui/mts_markers_ui_macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

// Text
#define HEAD_TXT 200
#define HEAD_HELP_TXT 201
#define IDENTITY_TXT 202
#define ICON_TXT 203
#define SUSPECT_TXT 204
Expand Down

0 comments on commit 04b8bd6

Please sign in to comment.