mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Common - Hide cursor during progress bar (#9128)
* Common - Hide cursor during progress bar (w/ CBA setting) * Fix base class define * Removed CBA setting for disabling hiding of the cursor for the ACE progress bar Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
parent
5d759e7b5f
commit
6b3aa3e0a2
@ -1,4 +1,3 @@
|
||||
class ctrlMapEmpty;
|
||||
class GVAR(DisableMouse_Dialog) {
|
||||
idd = -1;
|
||||
movingEnable = 0;
|
||||
|
@ -1,19 +1,20 @@
|
||||
class GVAR(ProgressBar_Dialog) {
|
||||
idd = -1;
|
||||
movingEnable = 0;
|
||||
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBG)),(_this select 0) displayCtrl 1)]; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBar)),(_this select 0) displayCtrl 2)]; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBarTitle)),(_this select 0) displayCtrl 3)];);
|
||||
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(dlgProgress)),_this select 0)]; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBG)),(_this select 0) displayCtrl 1)]; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBar)),(_this select 0) displayCtrl 2)]; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(ctrlProgressBarTitle)),(_this select 0) displayCtrl 3)];);
|
||||
objects[] = {};
|
||||
|
||||
class controlsBackground {
|
||||
class Background {
|
||||
idc = -1;
|
||||
class Background: ctrlMapEmpty {
|
||||
idc = 101;
|
||||
moving = 0;
|
||||
fade = 1;
|
||||
font = "TahomaB";
|
||||
text = "";
|
||||
sizeEx = 0;
|
||||
lineSpacing = 0;
|
||||
type = 0;
|
||||
style = 0;
|
||||
style = 48;
|
||||
type = 101;
|
||||
size = 1;
|
||||
colorBackground[] = {0, 0, 0, 0.0};
|
||||
colorText[] = {0, 0, 0, 0};
|
||||
|
@ -58,6 +58,8 @@ class ACE_Rsc_Control_Base {
|
||||
h = 0;
|
||||
};
|
||||
|
||||
class ctrlMapEmpty;
|
||||
|
||||
#include "ACE_Settings.hpp"
|
||||
#include "define.hpp"
|
||||
#include "ProgressScreen.hpp"
|
||||
|
@ -30,6 +30,11 @@ private _player = ACE_player;
|
||||
closeDialog 0;
|
||||
createDialog QGVAR(ProgressBar_Dialog);
|
||||
|
||||
// Hide cursor by using custom transparent cursor
|
||||
private _display = uiNamespace getVariable QGVAR(dlgProgress);
|
||||
private _map = _display displayCtrl 101;
|
||||
_map ctrlMapCursor ["", QGVAR(blank)];
|
||||
|
||||
(uiNamespace getVariable QGVAR(ctrlProgressBarTitle)) ctrlSetText _localizedTitle;
|
||||
|
||||
//Adjust position based on user setting:
|
||||
|
Loading…
Reference in New Issue
Block a user