Skip to content

Commit

Permalink
Added CommandBar addon
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade committed May 28, 2018
1 parent 8ab2af8 commit 70721bb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
15 changes: 15 additions & 0 deletions addons/grad_minui_commandbar/cbaSettings.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class settings
{
class commandbar
{
categoryName = "Command Bar";
class enabled
{
title = "Show vanilla commandBar";
tooltip = "You may need to restart your game to apply this setting.";
type = "CHECKBOX";
valueInfo = "false";
script = "{profileNamespace setVariable ['grad_minui_commandbar_enabled', _this];}";
};
};
};
19 changes: 19 additions & 0 deletions addons/grad_minui_commandbar/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class CfgPatches
{
class grad_minui_commandbar
{
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"grad_minui_main"};
version = "0.1";
authors[] = {"DerZade", "Fusselwurm"};
};
};

class grad_minui_cba
{
#include "cbaSettings.hpp"
}

#include "ui.hpp"
6 changes: 6 additions & 0 deletions addons/grad_minui_commandbar/ui.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CfgInGameUI
{
class CommandBar {
left = "(profilenamespace getvariable [""IGUI_GRID_BAR_X"", (safezoneX + 1 * (((safezoneW / safezoneH) min 1.2) / 40))]) + 2 * safezoneW * (parseNumber !(profileNamespace getVariable ['grad_minui_commandbar_enabled',false]))";
};
};

0 comments on commit 70721bb

Please sign in to comment.