Convert a function in plugin TMN->TMNF

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

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Convert a function in plugin TMN->TMNF

Post by lgrfbs-sweden » 07 Jul 2009 13:30

In code in TMN plugin:

Code: Select all

  $aseco->addCall('SendDisplayServerMessageToLogin',array($login, $message, 'Close', 'Delete', 0));
How do we convert this for same function but in TMNF?
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

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

Re: Convert a function in plugin TMN->TMNF

Post by Xymph » 07 Jul 2009 14:33

See the examples in the included plugin.ml_howto.php.
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
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Convert a function in plugin TMN->TMNF

Post by lgrfbs-sweden » 07 Jul 2009 21:25

Now have I test that file, but only gets one button "OK", where can I read about this?
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Convert a function in plugin TMN->TMNF

Post by lgrfbs-sweden » 15 Jul 2009 23:13

Sorry, but I DO NOT get it, how to make 2 button on the window and name them "Close" and "Delete".
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Convert a function in plugin TMN->TMNF

Post by lgrfbs-sweden » 24 Aug 2009 12:39

Xymph I have read the plugin.ml_howto.php but can not see how I will send a feedback to it, but I think the chat.players.php have feedback to plugin, right?
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

User avatar
lgrfbs-sweden
smooth traffic navigator
smooth traffic navigator
Posts: 200
Joined: 15 Apr 2007 15:48
Owned TM-games: TMN
Location: Sweden
Contact:

Re: Convert a function in plugin TMN->TMNF

Post by lgrfbs-sweden » 03 Oct 2009 12:13

HELP plz

Okey, this is what I are trying to do
Image
but in TMNF (this image is from TMN) and I found the section in manialinks.inc.php:

Code: Select all

 * Displays a Vote panel
 *
 * $player : player to send panel to
 * $yesstr : string for the Yes button
 * $nostr  : string for the No button
 * $timeout: timeout for temporary panel (used only by /votepanel list)
 */
function display_votepanel($aseco, $player, $yesstr, $nostr, $timeout) {

        // build manialink
        $xml = str_replace(array('%YES%', '%NO%'),
                           array($yesstr, $nostr), $player->panels['vote']);

        //$aseco->console_text($xml);
        // disable panel once clicked
        $aseco->client->addCall('SendDisplayManialinkPageToLogin', array($player
}  // display_votepanel
as look like I can copy & modify the this to do Close/Delete for the lgrfbs_plugin.om.mcm.php plugin

Plz no "Read The Fun* Manual" again :(
sorry to bug you all with a from yours point simple thing but I really don't get this.
Way can we not have a simpler way to do dialog windows on one row like in Delphi/VB?

(*knowe tis shall be a other wrod here but this is nicer)
Admin On:Image
My server:lgrfbs server / XASECO plugins
Image

Post Reply