Voila j'ai tester mon codage sur le commandconstruct de la ferme du gondor :
https://imladrisproduction.forumotion.com/discussion-f4/object-commandconstruct-t1313.htmdonc j'ai mis a la place l'object de la RohanFarm : c'est concluant mais ! oui mais il y a un bug ( ouai sinon je posterai pas
) :
voila le codage du commandset de la ferme :
- Code:
-
CommandSet RohanFarmCommandSet
1 = Command_ConstructRohanPeasantHorde
6 = Command_Sell
End
le bug est que la commande de construction n'aparrait pas :
- Spoiler:
http://yfrog.com/1nsshot0004p
c'est bien l'image de la ferme mais pas son commandset
voila le commandbutton modifié :
- Code:
-
CommandButton Command_ConstructGondorFarm
Command = FOUNDATION_CONSTRUCT
Object = RohanFarm
TextLabel = CONTROLBAR:ConstructGondorFarm
ButtonImage = BCFarm
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGondorBuildFarm
Radial = Yes
End
maintenant j'ai aussi un autre problème relatif a un ancien projet récement repris
je voulais mettre des "sous-menus" dans la caserne a la manière de la forteresse
donc j'ai fait deux trois codages
les voici :
le commandset de la caserne :
- Code:
-
CommandSet GondorBarracksCommandSet
// Main Menu
1 = Command_SelectRevivablesMenUnits
2 = Command_SelectUpgradesMenBarracks
3 = Command_Sell
// Units Menu
4 = Command_ConstructGondorFighterHorde
5 = Command_ConstructGondorTowerShieldGuardHorde
6 = Command_RadialBack
// Upgrads Menu
7 = Command_PurchaseTechnologyGondorBasicTraining ; ;
8 = Command_PurchaseUpgradeGondorBarracksLevel2 ; ;
9 = Command_RadialBack
End
donc les commandbutton : (copiés sur ce des menus de la forteresse )
- Code:
-
CommandButton Command_SelectUpgradesMenBarracks
Command = PUSH_VISIBLE_COMMAND_RANGE
TextLabel = CONTROLBAR:SelectUpgradesMenFortress
ButtonImage = UCCommon_UpgradeStructureNew
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipCommandSelectUpgradesMenFortress
Radial = Yes
CommandRangeStart = 3
CommandRangeCount = 4
End
CommandButton Command_SelectRevivablesMenUnits
Command = PUSH_VISIBLE_COMMAND_RANGE
TextLabel = CONTROLBAR:SelectRevivablesMenFortress
ButtonImage = UCCommon_GoodHeroes
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipCommandSelectRevivablesMenFortress
Radial = Yes
CommandRangeStart = 6
CommandRangeCount = 7
End
mais la aussi problème
voici le screen qui résume : tout se mélange dans le premier menu ( les flèches correspondes aux selections
)
- Spoiler:
http://yfrog.com/49sshot0001p
voila je remercie celui qui saurai m'aider
aussi j'ai une question : comment créer une description pour un commandconstruct qui serai de ce type : DescriptLabel = CONTROLBAR:ToolTipCommandSelectRevivablesMenFortress