sCorporation

Mouseover?

3 posts in this topic

On 20.1.2017 at 3:04 PM, sCorporation said:

Hallo liebe Leute

Kann mir jemand sagen, wie ich das Orange Mouse Over deaktivieren kann? Oder ist das nicht möglich?

http://images.akamai.steamusercontent.com/ugc/180542744132785911/167CB7B91704ACD75A9E148E0D101906AEE824E0/

Danke für eure Hilfe :)

Du meinst das Action Menu vom ScarCode Server Info Menu?

Ersetze den Inhalt der scarCODE\ServerInfoMenu\sqf\initLocal.sqf damit:

/*
   Author: IT07

   Description:
   does whatever is needed to initialize the ServerInfoMenu
*/

if hasInterface then
   {
      if isMultiplayer then
         {
            waitUntil { if ( not ( isNull ( findDisplay 46 ) ) AND ( ( typeOf player ) isEqualTo "Exile_Unit_Player" ) ) then { true } else { uiSleep 0.5; false } };
            if ( getText ( missionConfigFile >> "CfgServerInfoMenu" >> "openAtLogin" ) isEqualTo "yes" ) then { createDialog "RscDisplayServerInfoMenu" };
         } else
            {
               waitUntil { if not ( isNull ( findDisplay 46 ) ) then { true } else { uiSleep 0.5; false } };
               if ( getText ( missionConfigFile >> "CfgServerInfoMenu" >> "openAtLogin" ) isEqualTo "yes" ) then { createDialog "RscDisplayServerInfoMenu" };
            };

      while { true } do
         {
            if ( getNumber ( missionConfigFile >> "CfgServerInfoMenu" >> "addAction" ) isEqualTo 1 ) then
               {
                  _player = player;
                  _action = _player addAction [ "<img size='1.25' image='\a3\ui_f\data\Map\VehicleIcons\iconVirtual_ca.paa' />   Server Info Menu", "createDialog'RscDisplayServerInfoMenu'", "", -1, false, true, getText ( missionConfigFile >> "CfgServerInfoMenu" >> "openKey" ), "alive player" ];
                  waitUntil { if not ( alive player ) then { _player removeAction _action; true } else { uiSleep 2; false } };
                  waitUntil { if not( _player isEqualTo player ) then { true } else { uiSleep 2; false } };
                  uiSleep 1;
               } else
                  {
                     _openKey = getText(missionConfigFile >> "CfgServerInfoMenu" >> "openKey");
                     while {true} do
                        {
                           if (inputAction _openKey > 0) then { createDialog "RscDisplayServerInfoMenu"
                              } else { uiSleep 0.01 };
                        };
                  };
         };
   };

 

Info zum Thema addaction: https://community.bistudio.com/wiki/addAction

Edited by [RG] Salutesh

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.