[SUGGESTION] Mouse cursor control ALT

Moderator: NADEO

Locked
Mikey
Posts: 212
Joined: 16 Jun 2010, 01:22
Location: Down Under

[SUGGESTION] Mouse cursor control ALT

Post by Mikey »

Sorry this is not a bug report. But this has been ignored throughout beta 2.x and is in great need of something being done.
The issue is the method of having to hold the ALT key to be able to use the mouse cursor.
All controllers ManiaLive, Smart, Fox, MPaseco use the mouse, but this is very bad at the moment
Before beta 2.0 there were methods the controllers could use to temporarily disable the AltScoreBoard.
But after beta 2.0 this cannot be done ! This is a major issue for all server admins, and annoyance to most players.
There are 2 solutions that I can see;
1. Use a difeerent key for using the mouse cursor.
2. Change something somehwere so that controllers can control the AltScoreBoard and disable it when needed. ie fix the problem !
Last edited by Mikey on 16 Feb 2013, 22:54, edited 1 time in total.
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [WISH] Mouse cursor control ALT

Post by steeffeen »

it's pretty easy with the help of the game mode script itself (if you are able to edit it)

Code: Select all

// Handle XmlRpc events
foreach (Event in XmlRpc.PendingEvents) {
	switch (Event.Type) {
		case CXmlRpcEvent::EType::Callback: {
			declare PlayerId = GetPlayerId(Event.Param2);
			if (PlayerId != NullId && Players.existskey(PlayerId)) {
				// Player dependent events (login passed)
				switch (Event.Param1) {
					case "disableAltMenu": {
						declare UI <=> UIManager.GetUI(Players[PlayerId]);
						if (UI != Null) {
							UI.AltMenuNoDefaultScores = True;
							UI.AltMenuNoCustomScores = True;
						}
					}
					case "enableAltMenu": {
						declare UI <=> UIManager.GetUI(Players[PlayerId]);
						if (UI != Null) {
							UI.AltMenuNoDefaultScores = False;
							UI.AltMenuNoCustomScores = False;
						}
					}
				}
			}
		}
	}
}
the controller only needs to send a callback to the script like

Code: Select all

SendCallback("disableAltMenu", "login");
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Mikey
    Posts: 212
    Joined: 16 Jun 2010, 01:22
    Location: Down Under

    Re: [SUGGESTION] Mouse cursor control ALT

    Post by Mikey »

    Your solution is interesting, but it will not help with elite or royal, and its not "easy" if it requires replacing/editing scripts every server update. Surely nadeo could do something to make it better.
    I have not seen any controller working with the alt menu disabled since B2.0.
    Ive even tried using the Z depth to place a manialionk infront of the alt menu, but the different altmenu in elite+royal place the text at absolute max level. So that doesnt work either. I have asked notable plugin creators and they have tried several things, all with no success.
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [SUGGESTION] Mouse cursor control ALT

    Post by steeffeen »

    i don't see any other possibility than setting the UI properties to disable the alt menu with the help of the mode script itself, you're completely right about the problem that this can't be used for other title packs..
    MPAseco is already using my script to disable the alt menu as far as possible
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Locked

      Return to “Shootmania Storm Reports”

      Who is online

      Users browsing this forum: No registered users and 2 guests