Re: Aide sur le langage des .menu
Ok, ton image semble correcte. Essaye de créer un shader pour elle avec NoMipmap, pour virer la création des Mip Maps.
Tennis Elbow Games & Dungeon Crawler game
https://www.managames.com/Forum/
Ico // every shader request beginning with "Ico/" will use this shader
{
{
NoMipMap
map Menu/Art/Ico/Toto NoLoad // Toto will be replaced by the name of the request
rgbGen Entity
alphaGen Entity
blendFunc blend
AddressMode Border 0x00000000
}
}



def $s1 StatTeam1Set1
def $s2 StatTeam2Set1
item FuncGetNbWinnerSet
{
OnAction
{
SetCfg $s1 $StatTeam1Set$1
SetCfg $s2 $StatTeam2Set$1
}
OnActionIf /$s1/Score /$s2/Score 999999
{
MulAddMulCfg /Intern/NbSetTeam1 1 1
}
OnActionIf /$s2/Score /$s1/Score 999999
{
MulAddMulCfg /Intern/NbSetTeam2 1 1
}
Invisible
}
item
{
OnEnter
OnAction
{
SetCfg /Intern/NbSetTeam1 0
SetCfg /Intern/NbSetTeam2 0
}
Invisible
}
// Computation of the number of winning sets
def Num 1
LoopMacro 5
item
{
OnEnter
OnActionIf /Intern/CurrentSet Num+1 /Intern/NbSet
{
Function FuncGetNbWinnerSet Num
}
add Num 1
Invisible
}
LoopEnd