
[XAseco] Fufi Menu v0.37
Re: [XAseco] Fufi Menu v0.35
I've updated the Menu to v0.35 with the new command added in XAseco v1.13, 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
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
-
- smooth traffic navigator
- Posts: 234
- Joined: 16 Oct 2010 19:45
- Owned TM-games: TMN! TMF
- Location: Germany
Re: [XAseco] Fufi Menu v0.35
hello
how i change the menu button from

to a button like this

if it is not possible can somebody do it pls?
thanks for help
how i change the menu button from

to a button like this

if it is not possible can somebody do it pls?
thanks for help

- Ant
- TM-Patrol
- Posts: 1845
- Joined: 01 Dec 2007 17:04
- Owned TM-games: TMN, TMUF, TM Wii
- Location: London, England
- Contact:
Re: [XAseco] Fufi Menu v0.35
First of all, if you try looking at these:
From plugin.records_eyepiece.php
From records_eyepiece.xml
Then try to modify this section in fufi_menu_config.xml
I hope this helps 
From plugin.records_eyepiece.php
Code: Select all
//--------------------------------------------------------------//
// BEGIN: Widget for TopList //
//--------------------------------------------------------------//
$content = '<manialink id="'. $re_config['ManialinkId'] .'10">';
$content .= '<frame posn="'. $re_config['TOPLIST_WIDGET'][0]['POS_X'][0] .' '. $re_config['TOPLIST_WIDGET'][0]['POS_Y'][0] .' 0">';
$content .= '<format textsize="1"/>';
$content .= '<quad posn="0 0 0.001" sizen="4.6 6.5" action="'. $re_config['ManialinkId'] .'153" style="'. $re_config['TOPLIST_WIDGET'][0]['BACKGROUND_STYLE'][0] .'" substyle="'. $re_config['TOPLIST_WIDGET'][0]['BACKGROUND_SUBSTYLE'][0] .'"/>';
$content .= '<quad posn="-0.18 -4.6 0.002" sizen="2.1 2.1" image="'. $re_config['IMAGES'][0]['WIDGET_OPEN_SMALL'][0] .'"/>';
$content .= '<quad posn="0.7 -0.3 0.002" sizen="3.35 3" style="Icons128x128_1" substyle="Rankings"/>';
$content .= '<label posn="2.3 -3.4 0.1" sizen="3.65 2" halign="center" scale="0.9" text="MORE"/>';
$content .= '<label posn="2.3 -4.9 0.1" sizen="6.35 2" halign="center" textcolor="'. $re_config['TOPLIST_WIDGET'][0]['TEXT_COLOR'][0] .'" scale="0.6" text="RANKING"/>';
$content .= '</frame>';
$content .= '</manialink>';
$templates['TOPLISTWIDGET']->content = $content;
unset($content);
//--------------------------------------------------------------//
// END: Widget for TopList //
//--------------------------------------------------------------//
Code: Select all
<!-- Displays a button for the Toplists at score into the Race 'MORE RANKING' -->
<toplist_widget>
<enabled>true</enabled>
<text_color>FC0F</text_color>
<pos_x>29.9</pos_x>
<pos_y>39.3</pos_y>
<background_style>BgsPlayerCard</background_style>
<background_substyle>ProgressBar</background_substyle>
</toplist_widget>
.....
<widget_open_small>http://www.bilderload.com/bild/52716/llclockopenGDD86.png</widget_open_small>
Code: Select all
<styles>
<menubutton style='Bgs1InRace' substyle='NavButton'/>
<menubackground style='Bgs1' substyle='BgTitle3'/>
<menuicon style='Icons128x128_1' substyle='United'/>
<menuentry style='BgsPlayerCard' substyle='BgCardSystem'/>
<menuentryactive style='BgsPlayerCard' substyle='BgMediaTracker'/>
<menugroupicon style='Icons128x128_1' substyle='Browse'/>
<menuhelpicon style='Icons64x64_1' substyle='TrackInfo'/>
<menuactionicon style='Icons64x64_1' substyle='ToolLeague1'/>
<separator style='Bgs1InRace' substyle='NavButton'/>
<indicatorfalse style='Icons64x64_1' substyle='LvlRed'/>
<indicatortrue style='Icons64x64_1' substyle='LvlGreen'/>
<indicatoronhold style='Icons64x64_1' substyle='LvlYellow'/>
</styles>
<size>8 2.2</size>

My TMF Hub --- Server
-
- smooth traffic navigator
- Posts: 234
- Joined: 16 Oct 2010 19:45
- Owned TM-games: TMN! TMF
- Location: Germany
Re: [XAseco] Fufi Menu v0.35
Thank you Ant that did me help a lotAnt wrote: I hope this helps

But how i can hide or set a other position @ scoretable in fufi menu?
Thanks for your help
atm it looks so
race

scoretable

can nobody help me to hide that at scoretable?
- Ant
- TM-Patrol
- Posts: 1845
- Joined: 01 Dec 2007 17:04
- Owned TM-games: TMN, TMUF, TM Wii
- Location: London, England
- Contact:
Re: [XAseco] Fufi Menu v0.35
I tried this in plugin.fufi.menu.php but it seems to do nothing
Do you know the solution Xymph ?
Code: Select all
Aseco::registerEvent('onEndRace', 'hide_menu');
function hide_menu($aseco){
$xml = '<manialink id="383"></manialink>';
$aseco->client->query("SendDisplayManialinkPage", $xml, 1, false);
}
My TMF Hub --- Server
Re: [XAseco] Fufi Menu v0.35
I don't maintain the menu code (haven't even studied it in detail), just the .xml file. But as far as I can see 383 is a prefix of the manialink IDs used, four more digits follow that wherever it's used, see e.g. function closeMenu. So naturally a manialink with just ID 383 won't affect anything in the menu.Ant wrote:I tried this in plugin.fufi.menu.php but it seems to do nothing
Do you know the solution Xymph ?Code: Select all
Aseco::registerEvent('onEndRace', 'hide_menu'); function hide_menu($aseco){ $xml = '<manialink id="383"></manialink>'; $aseco->client->query("SendDisplayManialinkPage", $xml, 1, false); }
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
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
- Ant
- TM-Patrol
- Posts: 1845
- Joined: 01 Dec 2007 17:04
- Owned TM-games: TMN, TMUF, TM Wii
- Location: London, England
- Contact:
Re: [XAseco] Fufi Menu v0.35
Ok, I've tried these 2 now:
Neither seem to work, so I'm pretty stumped as to how to achieve this TheBigG - sorry mate.
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);
}
My TMF Hub --- Server
-
- smooth traffic navigator
- Posts: 234
- Joined: 16 Oct 2010 19:45
- Owned TM-games: TMN! TMF
- Location: Germany
Re: [XAseco] Fufi Menu v0.35
np ant and thanks for your help
- Ant
- TM-Patrol
- Posts: 1845
- Joined: 01 Dec 2007 17:04
- Owned TM-games: TMN, TMUF, TM Wii
- Location: London, England
- Contact:
Re: [XAseco] Fufi Menu v0.35
no worries, if you find out how to do it though could u let us know please ?
My TMF Hub --- Server
Re: [XAseco] Fufi Menu v0.35
Inspired by the initial changes that ThebigG sent me in a private conversation i managed to get this to work by using a different approach. The idea is to disable all menu work in plugin.fufi.menu.php and use the placement functions in records_eyepiece to draw the menu and manialinks. It seems to work nicely but be warned this has not been tested muchAnt wrote:no worries, if you find out how to do it though could u let us know please ?

First we need to edit plugin.fufi.menu.php. I have uncommented line 10 and line 890
Code: Select all
10 //Aseco::registerEvent('onPlayerConnect', 'fufiMenu_playerConnect');
890 //$fufiMenu->sendMenuButtonToLogin('');
Then we need to apply the menu button settings to records_eyepiece by editing records_eyepiece.xml. placement_widget off course needs to be set to <enabled>true</enabled

Code: Select all
<placement>
<enabled>true</enabled>
<description>Nasty hack to enable fufi_menu by Soehest</description>
<display>race</display>
<pos_x>44.3</pos_x>
<pos_y>26.0</pos_y>
<width>4.6</width>
<height>6.5</height>
<background_style>BgsPlayerCard</background_style>
<background_substyle>ProgressBar</background_substyle>
<action_id>3830000</action_id>
</placement>
<placement>
<enabled>true</enabled>
<description>Menu text</description>
<display>race</display>
<pos_x>46.6</pos_x>
<pos_y>21.4</pos_y>
<width>6.35</width>
<height>2</height>
<halign>center</halign>
<text>$FC0MENU</text>
<textsize>1</textsize>
<textscale>0.6</textscale>
</placement>
<placement>
<enabled>true</enabled>
<description>Icon for the above</description>
<display>race</display>
<pos_x>45.0</pos_x>
<pos_y>25.5</pos_y>
<width>3.2</width>
<height>3.2</height>
<icon_style>Icons128x128_1</icon_style>
<icon_substyle>United</icon_substyle>
</placement>
<placement>
<enabled>true</enabled>
<description>Image indicator that this is clickable for the above</description>
<display>race</display>
<pos_x>44.12</pos_x>
<pos_y>21.4</pos_y>
<width>2.1</width>
<height>2.1</height>
<image>http://labs.undef.de/.images/ingame/records-eyepiece/edge-open-ld-light.png</image>
</placement>
Code: Select all
<!--upper left preset-->
<position>44.5 32.5</position>
<horizontalorientation>2</horizontalorientation> <!-- 1.. left-to-right, 2...right-to-left-->
<verticalorientation>1</verticalorientation> <!-- 1.. top-to-bottom, 2.. bottom-to-top-->

I hope someone can use this


Regards
Last edited by Ant on 17 Apr 2012 01:24, edited 1 time in total.
Reason: Updated the image url in the last placement
Reason: Updated the image url in the last placement
-
- smooth traffic navigator
- Posts: 234
- Joined: 16 Oct 2010 19:45
- Owned TM-games: TMN! TMF
- Location: Germany
Re: [XAseco] Fufi Menu v0.35
great work
Re: [XAseco] Fufi Menu v0.35
Ok is it possible to use the Menu icon without using the callback to 'alternate_scoretable.php' as i dont use it..
thx
thx