Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Editing User Interface and Buttons

  1. #1
    Video Editor Gamerkd16's Avatar
    Join Date
    Jan 2007
    Location
    NY
    Posts
    820

    Editing User Interface and Buttons

    I'm messing around with a UI map again, and I'm trying to create my own buttons. Using Zeph's tutorial:

    - Open a new canvas that is 256x64 pixels in size.
    - For simplicity, fill it with black.
    - Put the the text onto the black.
    >>>Note<<< The text can literally be whatever you want. It could even be a picture of a penguin if you want it to be. For the simple purposes of this tutorial, I suggest making it be something like multiplayer, quit, or settings... >>>/Note<<<
    - Select all and copy.
    - Add one pixel to the width on the right side and fill it with pure blue.
    - Add 256 more pixels to the right side of the canvas and paste what is now the left side.
    - Select the text on the right side and brighten it.
    - Increase canvas size by one pixel on all four sides and fill with pure blue.
    In the end this makes an image 516x66. This doesn't agree with the power of two rules, so how can I follow this? Also is it correct that when you have the un-hover image on the left and hover image on the right and it will work work properly ingame?
    Reply With Quote

  2. #2
    lol modacity Timo's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    4,558

    Re: Editing User Interface and Buttons

    The power of two rule can be ignored if in the .bitmap tag you change the type to 'interface bitmaps'. That tutorial does run by the power of two rule, the pure blue border isn't counted, so the dimensions of the box inside the blue border is looked at when compiling.

    And yes, you have the unselected image on the left, and the selected one on the right.
    Last edited by Timo; August 20th, 2007 at 10:32 PM.
    Reply With Quote

  3. #3
    HA10 Limited's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    7,800

    Re: Editing User Interface and Buttons

    Theres a tutorial on it? Can you give me a link to it?
    Reply With Quote

  4. #4
    Video Editor Gamerkd16's Avatar
    Join Date
    Jan 2007
    Location
    NY
    Posts
    820

    Re: Editing User Interface and Buttons

    Sure:
    Zeph's Tutorial

    What exactly is pure blue? The RGB values...
    Last edited by Gamerkd16; August 20th, 2007 at 10:48 PM.
    Reply With Quote

  5. #5
    HA10 Limited's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    7,800

    Re: Editing User Interface and Buttons

    Quote Originally Posted by Gamerkd16 View Post
    Sure:
    Zeph's Tutorial

    What exactly is pure blue? The RGB values...
    Firstly, by working out numbers, I got.

    514 x 65

    (256 + 1) + 256 + 1 = 514

    64 + 1 = 65

    Secondly, pure blue means go to the RGB layers, go to blue layer and fill the 1 pixel strip with pure with on this layer, then go back to RGB layer and it will be pure blue
    Reply With Quote

  6. #6
    lol modacity Timo's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    4,558

    Re: Editing User Interface and Buttons

    You'd need to have 515x66 to split the two images in the middle, and to have a blue border around the whole bitmap (top, bottom, left and right).
    Reply With Quote

  7. #7
    Video Editor Gamerkd16's Avatar
    Join Date
    Jan 2007
    Location
    NY
    Posts
    820

    Re: Editing User Interface and Buttons

    Yea I realize my math mistake. Anyway I got it working correctly but now I get this error in tool:

    ### ERROR interface/linear bitmap cannot be DXT-compressed

    lol, months later, Timo is helping me again...
    Reply With Quote

  8. #8
    lol modacity Timo's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    4,558

    Re: Editing User Interface and Buttons

    Try changing the format to explicit alpha. If that doesn't work, use 32-bit colour.
    Reply With Quote

  9. #9
    Video Editor Gamerkd16's Avatar
    Join Date
    Jan 2007
    Location
    NY
    Posts
    820

    Re: Editing User Interface and Buttons

    Quote Originally Posted by Timo View Post
    Try changing the format to explicit alpha. If that doesn't work, use 32-bit colour.
    Using 32 bit color gives me this error is compilation:

    ==> !!WARNING!! failed to open TIFF: unsupported bits per sample (32) or sample count (4) <==


    EDIT:
    Problem solved. I just used an 8-bit color in photoshop, then in the bitmap tag set the format as 32-bit color.
    Last edited by Gamerkd16; August 21st, 2007 at 06:58 PM.
    Reply With Quote

  10. #10
    Video Editor Gamerkd16's Avatar
    Join Date
    Jan 2007
    Location
    NY
    Posts
    820

    Re: Editing User Interface and Buttons

    Ok, I got the buttons ingame, but I'm noticing that they are stretched in height and don't look like they do in Photoshop size-wise. Is there some option enabled somewhere that could be causing this deformation?
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •