Coder Social home page Coder Social logo

Comments (4)

Warsheep-GER avatar Warsheep-GER commented on May 30, 2024

i have some ideas for this .
we will talk about all tonight when im at home. ;)

from a3-admintoolkit.

Warsheep-GER avatar Warsheep-GER commented on May 30, 2024

/*
File: fn_AAN.sqf
Author: Karel Moricky

Description:
It's showtime!

Parameter(s):
_this select 0: STRUCTURED TEXT: Header text
_this select 1: STRUCTURED TEXT: Bottom text (moving)

Returns:
Nothing
*/
disableserialization;

_header = _this select 0;
_line = _this select 1;

([] call bis_fnc_rscLayer) cutrsc ["rscAAN","plain"];
_display = uinamespace getvariable "BIS_AAN";
_textHeader = _display displayctrl 3001;
_textHeader ctrlsetstructuredtext _header;//parsetext "Military press conference
Col. Kane announces the end of the op. Arrowhead";
_textHeader ctrlcommit 0;

_textLine = _display displayctrl 3002;
_textLine ctrlsetstructuredtext _line;//"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer pulvinar euismod neque, eget malesuada lectus auctor sit amet. Maecenas ac est ipsum. Vestibulum in sapien turpis. Nunc ultricies, tellus ac lacinia consequat, mi massa sodales eros, vel semper justo enim non erat. Cras vitae urna et erat dapibus sagittis ac porttitor odio. Aliquam adipiscing malesuada libero, vitae suscipit mi interdum at. Vivamus sapien metus, ultricies quis ultricies ultrices, venenatis nec orci. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In egestas congue malesuada. Vestibulum gravida ligula volutpat ipsum auctor vulputate. ";
_textLine ctrlcommit 0;
_textLinePos = ctrlposition _textLine;
_textLinePos set [0,-100];
_textLine ctrlSetPosition _textLinePos;
_textLine ctrlcommit 1500;

_textClock = _display displayctrl 3003;
while {!isnull _display} do {

_textClock ctrlsettext ([daytime,"HH:MM"] call bis_fnc_timetostring);
_textClock ctrlcommit 0;
sleep 60;
};

from a3-admintoolkit.

ole1986 avatar ole1986 commented on May 30, 2024

An example on how to use the AAN by hiding all unnecessary icons, etc..
Still this would be placed into a file located in mission pbo (because all need it):

[parseText "<t size='1.5'>Admin Toolkit Headline</t><br/><t>Some more extra text information</t>", parseText ""] spawn BIS_fnc_AAN;
/* Hide the AAN after X seconds */
[] spawn { sleep 5; (uinamespace getvariable "BIS_AAN") closedisplay 1 };
/* immediately hide the icons, but keep the red bar plus clock */
[] spawn { sleep 0.001;  _all = (allControls (uinamespace getvariable "BIS_AAN")); (_all select 2) ctrlShow false; (_all select 3) ctrlShow false; (_all select 0) ctrlShow false; }

from a3-admintoolkit.

ole1986 avatar ole1986 commented on May 30, 2024

As we can not go without adding a function into missionFile (allowing "normal" players) to receive the message response being send from server, I prefer to use the current setup

Ticket closed

from a3-admintoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.