xboxscene.org forums

Author Topic: Skin With Static Menu  (Read 50 times)

DeVante

  • Archived User
  • Full Member
  • *
  • Posts: 110
Skin With Static Menu
« on: September 26, 2003, 11:20:00 PM »

CODE

 
    
    
    
 


 
    
    
    
    
    false
 


 
    
    
    fontb
    fontn
    -4
    -7
    5000
    true
    0xFFFFFFFF
    0xFFC0C0C0
    0xFFC0C0C0
 

   


... and here is the original portion of my skin menu section:
CODE
 
    
    
    0
    5
    3
    True

    
    titlefont
                       0xFF000000
    0
    left
    


    
    descrfont
    0
    left
    


    
    0xFF76BA00
    0xFF000000
    true
    

    

                 
 


Also, here is the entire mxm_skin.xml file that I'm using (modified "BlackBox").
And here is the entire DemoX mxm_skin.xml.

You may have to right-click and choose "Save target as..." to view them.

Thanks a lot of any help.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Skin With Static Menu
« Reply #1 on: September 26, 2003, 11:32:00 PM »

Basically, its
<LayoutElement Type="Menu" Source="MXM">

as opposed to:
<LayoutElement type="menu" source="menux">

They are two different types of elements, and have different settings.  MenuX doesn't have smooth scrolling among other things, and MXM doesn't have a moving cursor.

It's up to you what you want to use.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Skin With Static Menu
« Reply #2 on: September 26, 2003, 11:34:00 PM »

Another thing: The up/down arrows can be triangle elements, with "ItemNext" and "ItemPrev" conditionals
It is detailed in the skinning document
Logged

DeVante

  • Archived User
  • Full Member
  • *
  • Posts: 110
Skin With Static Menu
« Reply #3 on: September 27, 2003, 12:32:00 AM »

tongue.gif'
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Skin With Static Menu
« Reply #4 on: September 27, 2003, 04:54:00 AM »

QUOTE (DeVante @ Sep 27 2003, 04:32 AM)
Well wouldn't you know I figured that out not two minutes after posting this? ;>

I wonder why BenJeremy took away the non-scrolling menu, scroll arrows, and description offset (to make the descriptions appear slightly over to the side of titles) from the new MXM style menus.

These are really neat features that make sense to keep. :/

I tried messing around with creating my own arrow images, then using conditionals to display them, but they just wouldn't show. :/ I wonder what I'm doing wrong.

Anyway, I'd be fine using MENUX style menus, but there is no way to turn off that huge selection box and just make the text change color instead!

Arggh! tongue.gif'

Well, technically, "MenuX" was the later version of code.

I will make improvements on the gadgets down the road. For now, all of the functionality is there. I'm not sure what you are having trouble recreating, but if I can get a break from coding, maybe I'll be able to better define the menu block setup in greater detail.

AFAIR, everything, all attributes, are changeable in the MenuX style. It's just a matter of using the correct node/element/attributes.
Logged

DeVante

  • Archived User
  • Full Member
  • *
  • Posts: 110
Skin With Static Menu
« Reply #5 on: September 27, 2003, 12:59:00 PM »

BenJeremy, do you ever get tired of getting praised for such a a great dashboard? ;>

Basically for my menu I'd like to have the selection move around and the menu stay still until you get to the bottom/top like in MenuX.

I can pretty much do this with MenuX style, but I can't seem to figure out a way to disable the selection box (<MENUCOLOR>) and just have it change the color of the selected words.

With MXM, I can't figure out a way to get it to show arrows when there are more items offscreen. Also, I can't get the menu to stay where it is until you get to the bottom like in MenuX.

Also, I like the way you can offset the descriptions by a pixel number instead of just "left, right, center." If I have to use MXM I wouldn't be able to do that.

Anyway, I'm definately not complaining. :>
I just post this as a feature request, I suppose.
Also, if someone knows of a way to do what I want, they can post it here. :>
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Skin With Static Menu
« Reply #6 on: September 27, 2003, 02:44:00 PM »

QUOTE (DeVante @ Sep 27 2003, 04:59 PM)
BenJeremy, do you ever get tired of getting praised for such a a great dashboard? ;>

Basically for my menu I'd like to have the selection move around and the menu stay still until you get to the bottom/top like in MenuX.

I can pretty much do this with MenuX style, but I can't seem to figure out a way to disable the selection box (<MENUCOLOR>) and just have it change the color of the selected words.

With MXM, I can't figure out a way to get it to show arrows when there are more items offscreen. Also, I can't get the menu to stay where it is until you get to the bottom like in MenuX.

Also, I like the way you can offset the descriptions by a pixel number instead of just "left, right, center." If I have to use MXM I wouldn't be able to do that.

Anyway, I'm definately not complaining. :>
I just post this as a feature request, I suppose.
Also, if someone knows of a way to do what I want, they can post it here. :>

I'll look up the tags tomorrow (busy day, today...)
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Skin With Static Menu
« Reply #7 on: September 27, 2003, 03:27:00 PM »

CODE

   m_iTextOffset(0),
   m_iScreenOffset(0),
   m_iDisplayCount(4),
   m_iTitleSquash(-4),
   m_iDescrSquash(-7),
   m_iTitleXOffset(6),
   m_pFolderEntry(NULL),
   m_iDescrXOffset(16),
   m_iMinHeight(1),
   m_bThumbnails(false),
   m_bLeft(true),
   m_dwMenuColor(0xFFFFFF00),
   m_dwArrowColor( 0xFF0000FF),
   m_dwSelColor(0xFF000000),
   m_dwCurrentAlpha(0xFF000000),
   m_dwThrobPeriod(9000),
   m_bFolderLoad(false),
   m_bFolderEntryDynamic(false),
   m_bPassLoad(false),
   m_bPassEntryDynamic(false),
   m_iCurEntry(-1),
   m_bDrawDescr(true)


This is MXM
CODE

   m_imgBackTexture;
   m_iNumItems(5),
   m_iLastPos(0),
   m_iMinHeight(1),
   m_bThumbnails(false),
   m_bLeft(true),
   m_iSelPos(2),
   m_iScrollOffset(0),
   m_bSmoothScroll(true),
   m_pMenuFont(NULL),
//   m_dwSelTextColor(0),
//   m_dwSelBackColor(0),
//   m_dwSelBorderColor(0),
//   m_dwSelShadowColor(0),
//   m_dwTextColor(0),
//   m_dwBackColor(0),
//   m_dwBorderColor(0),
//  m_dwShadowColor(0),
   m_bFolderLoad(false),
   m_bFolderEntryDynamic(false),
   m_bPassLoad(false),
   m_bPassEntryDynamic(false),
   m_iCurEntry(-1),
   m_iTopSquash(-2),
   m_iBottomSquash(-2),
   m_iItemHeight(-1),
   m_iItemWidth(-1),
   m_iScrollFactor(3),
   m_dwMenuHash(0)


You can sorta make out the tag names, though they are not explicitly stated here.
Logged

DeVante

  • Archived User
  • Full Member
  • *
  • Posts: 110
Skin With Static Menu
« Reply #8 on: September 28, 2003, 01:25:00 AM »

CODE

   

 
    
    
    false
    
    

 

 
   
    0xFF0000FF
    0xFF00FFFF
    



 
    
   
    


 
   
   
   
   false
   
    


 
                       
    
    
    false  
         


 
    
    
    false
    

 
 
    
    
    0
    5
    10
    True
    True

    
    titlefont
                       0xFF000000
    0
    left
    


    
    descrfont
    0
    left
    


    
    0xFF76BA00
    0xFF000000
    true
    

    


   
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Skin With Static Menu
« Reply #9 on: September 28, 2003, 01:29:00 AM »

QUOTE
<LayoutElement Type=”Triangle” Direction="Left">


Sometimes if you copy from Word, you get funny quotes ( ” as opposed to " ).  Fixing them should make the triangle work.  " is normal.
Logged

DeVante

  • Archived User
  • Full Member
  • *
  • Posts: 110
Skin With Static Menu
« Reply #10 on: September 28, 2003, 02:19:00 AM »

QUOTE (geniusalz @ Sep 28 2003, 10:29 AM)
QUOTE
<LayoutElement Type=”Triangle” Direction="Left">


Sometimes if you copy from Word, you get funny quotes ( ” as opposed to " ).  Fixing them should make the triangle work.  " is normal.

That was it. Thanks!

I wonder if I would have noticed that if it were not 4am. ;>

Anyway, everything is working and I tell you, an arrow image (PNG) that appears on the screen on a conditional is a lot better than the <ARROW> tag!
Logged