[XAseco] Fufi Menu v0.37

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1323
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco] Fufi Menu v0.36

Post by undef.de » 04 May 2013 17:29

weasel wrote:Need some help.

I get more menus then I want.

Using the latest version , with that hack Undef wrote and the config.xml from Undefs his post.

But now I have 2 menu buttons.

I made a screen :


Image

That little menu ( on the background , hard to see ) also stays on screen during podium.
That "new" one ( Hack alla Undef ) goes away during podium.

I'm open for suggestions, Thanks.
I have updated my post above and in the link contains now the missed and required fufi_menu.xml, which removes your problem.
Last edited by undef.de on 21 May 2014 18:19, edited 1 time in total.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

weasel
speedy pilot
speedy pilot
Posts: 342
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: [XAseco] Fufi Menu v0.36

Post by weasel » 04 May 2013 17:39

I will try , thanks. :roflol:

I post again if I got it to work. :thumbsup:

weasel
speedy pilot
speedy pilot
Posts: 342
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: [XAseco] Fufi Menu v0.36

Post by weasel » 04 May 2013 18:38

It works ^^ Thanks m8.

btw , can that menu placed everywhere ?

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1323
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco] Fufi Menu v0.36

Post by undef.de » 05 May 2013 08:16

weasel wrote:It works ^^ Thanks m8.

btw , can that menu placed everywhere ?
Yes, but you have also to adjust the position where its open on a click: fufi_menu_config.xml

Code: Select all

	<!--upper left preset-->
		<position>44.6 26</position>
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

weasel
speedy pilot
speedy pilot
Posts: 342
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: [XAseco] Fufi Menu v0.36

Post by weasel » 05 May 2013 12:58

It works , but now I see the little pics are missing in menu.

I now only see the text, not those yellow maps in front of the text.



Image

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1323
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco] Fufi Menu v0.36

Post by undef.de » 05 May 2013 15:29

weasel wrote:It works , but now I see the little pics are missing in menu.

I now only see the text, not those yellow maps in front of the text.



Image
Are the icons to see, when you use

Code: Select all

<!--upper left preset-->
      <position>44.6 26</position>
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

weasel
speedy pilot
speedy pilot
Posts: 342
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: [XAseco] Fufi Menu v0.36

Post by weasel » 05 May 2013 17:14

That code is already there.

But just a pic. so we talk about the same thing :


Image

Menu on the right is the server at the moment.

Menu left is an old server. Older vers. of RE and fufi.

But I was talking about those yelow and ( blue ) round icons inside the menu.
If you choose something.

bugatty2007
highway camper
highway camper
Posts: 1
Joined: 26 May 2013 12:07
Owned TM-games: TMUF

Re: [XAseco] Fufi Menu v0.36

Post by bugatty2007 » 26 May 2013 14:15

Hello,

I'm working to add a server/website link into fufi menu.

This is what i've done until now:

<entry caption="THC Relay" chatcmd='tmtp://#spectate=pk-server14' unique='bootme'>
<manialink>tmtp://#spectate=pk-server14</manialink></entry>


but it doesn't work at all and i was wondering if anybody can help me with it? How can i add a link to it? is there any chat-based command to join a link without clicking it or...?

Please please help me!
Thanks

Xymph
Pit Crew
Pit Crew
Posts: 5685
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [XAseco] Fufi Menu v0.37

Post by Xymph » 26 Jul 2013 17:14

I've updated the Menu to v0.37 with the new commands added in XAseco v1.16, see the first post.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1323
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco] Fufi Menu v0.36

Post by undef.de » 02 Aug 2013 14:13

weasel wrote:That code is already there.

But just a pic. so we talk about the same thing :


Image

Menu on the right is the server at the moment.

Menu left is an old server. Older vers. of RE and fufi.

But I was talking about those yelow and ( blue ) round icons inside the menu.
If you choose something.
Sorry for answer that late, but it seems i have overlooked this post. Anyway, if have updated the files in my post, so you have to replace the "fufi_menu.xml" to have the icons at the right place.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

Extra_93
highway camper
highway camper
Posts: 2
Joined: 23 Sep 2014 08:31
Owned TM-games: TMU

Re: [XAseco] Fufi Menu v0.37

Post by Extra_93 » 23 Sep 2014 08:39

Image

I have this logo "Server Menu" and i clicked this menu and not open !!

User avatar
L3cKy
happy cruiser
happy cruiser
Posts: 163
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XAseco] Fufi Menu v0.35

Post by L3cKy » 04 Dec 2018 07:49

Ant wrote:
08 Jun 2011 16:31
Ok, I've tried these 2 now:

Code: Select all

Aseco::registerEvent('onEndRace', 'hide_menu');
	function hide_menu($aseco){
       $xml = '<manialink id='.$this->manialinkID.'1001'.'></manialink>';
       $aseco->client->query("SendDisplayManialinkPage", $xml, 1, false);
}

Code: Select all

Aseco::registerEvent('onEndRace', 'hide_menu');
	function hide_menu($aseco){
       $xml = '<manialink id='.$this->manialinkID.'0000'.'></manialink>';
       $aseco->client->query("SendDisplayManialinkPage", $xml, 1, false);
}
Neither seem to work, so I'm pretty stumped as to how to achieve this TheBigG - sorry mate.

I've done it this way ^^

Add new event //Under Line: 13

Code: Select all

Aseco::registerEvent('onEndRace', 'fufiMenu_Off');

Search for... //Line: 888

Code: Select all

function fufiMenu_newChallenge($aseco){
	global $fufiMenu;
	$fufiMenu->sendMenuButtonToLogin('');
}

And replace it into:
NOTE: NEW FUNCTION ADDED

Code: Select all

function fufiMenu_newChallenge($aseco){
	global $fufiMenu;
	$fufiMenu->sendMenuButtonToLogin();
}
function fufiMenu_Off($aseco){
	global $fufiMenu;
	$fufiMenu->hideMenu();
}
Last but not least search for: //Line: 287

Code: Select all

/**
	 * Sends the default menu button to a specified login
	 *
	 * @param String $login
	 */
	function sendMenuButtonToLogin($login){

		$header = str_replace(array('%menuid%', '%framepos%'), array($this->manialinkID.'0000', '0 0 1'), $this->blocks['header']);
		$footer = $this->blocks['footer'];
		$content = str_replace(array('%size%', '%pos%', '%poslabel%', '%style%', '%substyle%', '%action%', '%text%'), array($this->width.' '.$this->height, $this->posx.' '.$this->posy.' 1', ($this->posx+$this->width/2).' '.($this->posy-($this->height/2-0.1)).' 1', $this->styles['menubutton']['style'], $this->styles['menubutton']['substyle'], $this->manialinkID.'0000', $this->caption), $this->blocks['menubutton']);
		$icon = str_replace(array('%x%', '%y%', '%style%', '%substyle%'), array($this->posx + 1, $this->posy-0.2, $this->styles['menuicon']['style'], $this->styles['menuicon']['substyle']), $this->blocks['icon']);
		$xml = $header.$content.$icon.$footer;

		if ($login == ''){
			if ($this->firstChallenge){
				$this->firstChallenge = false;
				if ($this->Aseco->debug) $this->Aseco->console('[FufiMenu] sending menu button to all');
				$this->Aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
			}
		} else {
			if (!$this->firstChallenge){
				if ($this->Aseco->debug) $this->Aseco->console('[FufiMenu] sending menu button to login: '.$login);
				$this->Aseco->client->addCall('SendDisplayManialinkPageToLogin', array($login, $xml, 0, false));
			}
		}
	}
And replace it into:
NOTE: NEW FUNCTION ADDED

Code: Select all

	function hideMenu() {
   		$xml = '<manialink id="3830000"></manialink>';
   		$this->Aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
	}

	/**
	 * Sends the default menu button to a specified login
	 *
	 * @param String $login
	 */
	function sendMenuButtonToLogin(){

		$header = str_replace(array('%menuid%', '%framepos%'), array($this->manialinkID.'0000', '0 0 1'), $this->blocks['header']);
		$footer = $this->blocks['footer'];
		$content = str_replace(array('%size%', '%pos%', '%poslabel%', '%style%', '%substyle%', '%action%', '%text%'), array($this->width.' '.$this->height, $this->posx.' '.$this->posy.' 1', ($this->posx+$this->width/2).' '.($this->posy-($this->height/2-0.1)).' 1', $this->styles['menubutton']['style'], $this->styles['menubutton']['substyle'], $this->manialinkID.'0000', $this->caption), $this->blocks['menubutton']);
		$icon = str_replace(array('%x%', '%y%', '%style%', '%substyle%'), array($this->posx + 1, $this->posy-0.2, $this->styles['menuicon']['style'], $this->styles['menuicon']['substyle']), $this->blocks['icon']);
		$xml = $header.$content.$icon.$footer;
		$this->Aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
		/*
		if ($login == ''){
			if ($this->firstChallenge){
				$this->firstChallenge = false;
				if ($this->Aseco->debug) $this->Aseco->console('[FufiMenu] sending menu button to all');
				$this->Aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
			}
		} else {
			if (!$this->firstChallenge){
				if ($this->Aseco->debug) $this->Aseco->console('[FufiMenu] sending menu button to login: '.$login);
				$this->Aseco->client->addCall('SendDisplayManialinkPageToLogin', array($login, $xml, 0, false));
			}
		}*/
	}
Greetings

Post Reply