![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-14-10, 08:10 AM
|
#1 | |
|
Black Magic
![]() |
Quote:
2) looked at it with menu editor and materials are valid and alphas aren't disabled so the c++ code must be turning it's visibility to 'off'. You could edit the associated .py file for this: (this example is based off of the stock Page attack periscope.py): Code:
def InitializeScript():
Menu.PageActivated += Menu_PageActivated
Menu.PageDeactivated += Menu_PageDeactivated
Menu_PageActivated( Pageattackperiscope )
def Menu_PageActivated( page ):
if page == Pageattackperiscope:
Pageattackperiscope_Waterlevel.Visible = True
for item in Pageattackperiscope_Waterlevel.Controls:
item.Visible = True
def Menu_PageDeactivated( page ):
if page == Pageattackperiscope:
Pageattackperiscope_Waterlevel.Visible = False
for item in Pageattackperiscope_Waterlevel.Controls:
item.Visible = False
def UnloadScript():
Menu.PageActivated -= Menu_PageActivated
Menu.PageDeactivated -= Menu_PageDeactivated
3) and 4) need more pictures and/or information as I'm not quite sure what you're trying to do. |
|
|
|
04-14-10, 03:53 PM
|
#2 | |
|
Electrician's Mate
![]() Join Date: Mar 2008
Posts: 132
Downloads: 89
Uploads: 5
|
Quote:
1. I had also moved the Pattern runing torpedo controls, but wasn't aware that they require a "switch" to activate. ![]() ![]() 2. I'll give the code a try. Intent is to to add to both obs and atk periscope views. The alpha channel is good and by the hieght of the water level it appears to be registering a "quantity" from somewhere. I need to just see it where I want it first, then make adjustments. 3. Here is a picture of a telegrapgh that I saw on Reapers WIP UI mod. I think it looks great but I doesn't appear to be dynamic. I have made my own graphic and "attached it to the dial hand (New val). It now moves as a telegraph should. When you select the new throttle setting the little handle moves there first and then the dial hand follows. Problem is it doesn't scale up when you zoom in, and even the dial hand it is attached to stays at the same small size. I can't figure out how the change to the graphic has "broken" the scalling? ![]() 4. I'm trying to achieve different looking "stands" for each of the dials and cant figure out why it always reverts to just initial graphic. I have adjusted the cropping area for each "toggle" but they all just revert to the same one ![]() Again many thanks for your knowledge and wisdom.
__________________
We have learned from our mistakes; we now reproduce them almost perfectly! We're here to protect Democracy - not practice it! |
|
|
|
04-14-10, 04:26 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
3) instead of creating a new hand and attaching it to the new value, if you substitute what you want the new value to be (graphic wise) then everything should work (scaling, etc.). Since the new value will be a 'needle' that has a handle with it. Make sense? Open the menu editor and look what the graphic used for new value is - make that be what you're trying to do above (give it the correct .dds and crop settings). Because I do animations on the dials you would have to edit all the animation code and all to make the way you're trying to do work - it's not worth it. The easier way is to replace the new value with what you want. 4) It reverts to just initial graphic because the underlying control is a button. The button has 4 materials (not selected, selected, mouse over, ?? - and probably not in that order). Because these are game (c++) controlled, the game isn't updating the VisibleBitmapIndex property of those buttons. What I would do: ensure that each dial's button's materials crop settings are staggered. What was crop settings for material #2 of dial #1 is now crop settings for material #1 of dial #2. What was crop settings for material #3 of dial #1 is now crop settings for material #1 of dial #3. See what that gets you. Basically you don't want the same crop settings for any material of any dial. Material #1 != Material #2 != Material #3 != Material #4 for any dial and Material #1 dial #1 != Material #1 dial #2 != Material #1 dial #3, so on and so forth for the other materials. |
|
|
|
04-14-10, 06:31 PM
|
#4 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
This way you select speed as normal with the telegraph handel and the inner needle rotates from its current position to your selected position. Works nice in game compared to the needle been attached to the handle - had tried it that way first. |
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
