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:
JonBons 2023-01-24 13:57:10 -06:00 committed by GitHub
parent 5d759e7b5f
commit 6b3aa3e0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,3 @@
class ctrlMapEmpty;
class GVAR(DisableMouse_Dialog) {
idd = -1;
movingEnable = 0;

View File

@ -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};

View File

@ -58,6 +58,8 @@ class ACE_Rsc_Control_Base {
h = 0;
};
class ctrlMapEmpty;
#include "ACE_Settings.hpp"
#include "define.hpp"
#include "ProgressScreen.hpp"

View File

@ -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: