makotech222
Warlord
- Joined
- Mar 18, 2012
- Messages
- 240
I think I'm getting a crash using this when someone vassalizes another nation. I have to test more to make sure, though.
What about building/unit buttons, that adds buildings/units to build queue?I'm not sure about the build queue, but I know I can make it so for the built buildings lists by redesigning the list completely on a technical level.
Doing so would also make the lists faster to create and draw on screen, so this is something I'm planning to do when I get my inspiration back.
Isn't that already the case?What about building/unit buttons, that adds buildings/units to build queue?
Is it possible to link those to pedia too, so rightclicking them would open appropriate pedia entry?
Sure.By the way is it possible to separate buildable/unbuildable buildings and units, so they wouldn't be mixed with each other?
NopeIsn't that already the case?
Something I can fix easily if it's really the case.Nope
I'm somewhat ambivalent to there being a modmodmod to my modmod, there is a significant risk that we may step on each other toes, but on the other hand, all contributions are good for C2C.I'm gonna start looking into optimizing the build screens stuff we talked about earlier, @Toffer90 . Is it okay if i build off of your minimod? You seem to have already done a lot of work on the MainScreen file already.
Do you mean information like what can be found in this LINK under the category "CyGInterfaceScreen" (search for it on page).Also, is there any Type information on the 'screen' object in python? I'd like to know what parameters i can pass to functions and such.
Something like that.so, this thing is still in limbo in regards of making this part of the core?![]()
Yeah, there's an issue with attaching something to an attachment panel, been there done that, it drove me crazy for an hour or two. ^^@Toffer90 hmm, i'm feeling a bit stuck. I've switched my BottomButtonContainer to a regular panel now. I'm looping through available units, and I have it like so:
But none of the image buttons show up. Using regular attachPanel instead, they show up by in wrong size. Am I using attachPanelAt wrong? Does the X and Y parameters refer to X and Y of the parent panel? I'll keep working on it, but I would appreciate any help
eLoopUnit = pHeadSelectedCity.getUnitListType(iGroup, iPos)
screen.attachPanelAt("BottomButtonContainer", "unit_panel_" + str(iCount), "", "", False, False, PanelStyles.PANEL_STYLE_STANDARD, 0 + (60 * iCount), 0, 60, 60, WidgetTypes.WIDGET_GENERAL, GC.getUnitInfo(eLoopUnit).getUnitClassType(), -1)
screen.attachImageButton("unit_panel_" + str(iCount),"unit" + str(iCount),GC.getUnitInfo(eLoopUnit).getButton(),GenericButtonSizes.BUTTON_SIZE_CUSTOM,WidgetTypes.WIDGET_TRAIN,GC.getUnitInfo(eLoopUnit).getUnitClassType(),-1,False)
![]()
What about building/unit buttons, that adds buildings/units to build queue?
Is it possible to link those to pedia too, so rightclicking them would open appropriate pedia entry?
Isn't that already the case?
Checked in game, and right-clicking on the buttons in the city screen that add units and buildings to the build queue does open the pedia as it should.Nope