home *** CD-ROM | disk | FTP | other *** search
/ Level 2004 April / Level_2004-04_112_cda.bin / data1.cab / GameFiles / resources.rvr / widgets.def < prev    next >
Encoding:
Text File  |  1999-07-30  |  7.7 KB  |  146 lines

  1. // Revenant - Copyright 1999 Cinematix Studios, Inc.
  2. // ******* Screen Widgets Definition File  ******* 
  3.  
  4. // Common drawmode flags
  5. #define DM_BACKGROUND            0x00000010    // Draws bitmap to background
  6. #define DM_NORESTORE            0x00000020    // Disables automatic background restoring
  7. #define DM_TRANSPARENT            0x00000100    // Enables transparent drawing.
  8. #define DM_ALIAS                 0x00001000    // Antiailiases edges using bitmap alias data.
  9. #define DM_ALPHA                 0x00002000    // Enables Alpha drawing.
  10. #define DM_USEREG                0x00020000    // Draws bitmap based on registration point
  11. #define DM_USEDEFAULT            0x80000000    // Draws bitmap based on registration point
  12.  
  13. // Text flags
  14. #define TEXT_LEFT                0x0001        // Left justify text
  15. #define TEXT_CENTER                0x0002        // Center justify text
  16. #define TEXT_RIGHT                0x0004        // Right justify text
  17. #define TEXT_FITCLIP            0x0008        // Move text lines so they fit within the clip rect
  18. #define TEXT_TOP                0x0010        // Left justify text
  19. #define TEXT_BOTTOM                0x0020        // Center justify text
  20. #define TEXT_VCENTER            0x0040        // Right justify text
  21. #define TEXT_SINGLELINE            0x0080        // Text will be printed at destx, desty, and be a single line
  22. #define TEXT_NODRAW                0x0100        // Just calculate the size of the text drawn 
  23. #define TEXT_NOBASELINE            0x0200        // Draws text from top of character, not upper left corner
  24. #define TEXT_SHADOW                0x0400        // Draws shadowed text style
  25. #define TEXT_GLOW                0x0800        // Draws glowing text style
  26. #define TEXT_SELECT                0x1000        // Draws selected text style
  27. #define TEXT_ELIPSES            0x2000        // If text goes beyond limits, use elipses at end
  28.  
  29. // Control flags
  30. #define CTRLFLAG_ERROR            0x00000001    // Control failed to initialize 
  31. #define CTRLFLAG_HIDDEN            0x00000002    // Control is hidden
  32. #define CTRLFLAG_DISABLED        0x00000004    // Control is disabled
  33. #define CTRLFLAG_SELECTED        0x00000008    // Control is selected
  34. #define CTRLFLAG_SELECTABLE        0x00000010    // Control is selectable
  35. #define CTRLFLAG_DIRTY            0x00000020    // Control is dirty (will be redrawn next frame)
  36. #define CTRLFLAG_DRAWTOBG        0x00000800    // Control will draw itself to the control pane bg
  37. #define CTRLFLAG_CLEARBG        0x00001000    // Forces control to clear bg if it doesn't by default (i.e. BITMAP, FRAME, TEXT)
  38.  
  39. #define BMCTRLFLAG_DRAWTOBG        0x00010000    // Draw bitmap to the background
  40.  
  41. #define TEXTFLAG_FRAME            0x00010000    // Draw a frame for this contorl
  42. #define TEXTFLAG_CENTER            0x00040000    // Center the text (default is left)
  43. #define TEXTFLAG_RIGHT            0x00080000    // Draw the text right justified (default is left)
  44. #define TEXTFLAG_TOP            0x00100000    // Draw text top justified (default is vcenter)
  45. #define TEXTFLAG_BOTTOM            0x00200000  // Draw text bottom justified (default is vcenter)
  46. #define TEXTFLAG_FIELDCLR        0x00400000  // Use field color when drawing text
  47.  
  48. #define BTNFLAG_DOWN            0x00010000    // This button is down
  49. #define BTNFLAG_NOTSQUARE        0x00020000    // This button uses the keycolor of the up bitmap for hit testing
  50. #define BTNFLAG_TOGGLE            0x00040000    // This button behaves like a toggle button
  51. #define BTNFLAG_RADIO            0x00080000    // This button behaves like a radio button
  52. #define BTNFLAG_NODRAW            0x00100000    // Don't draw the button (pane will draw it)
  53. #define BTNFLAG_DRAWRADIO        0x00200000    // Draw button with radio style
  54. #define BTNFLAG_DRAWTOGGLE        0x00400000    // Draw button with toggle style
  55.  
  56. #define SCROLLFLAG_VSCROLL        0x00010000    // This is a vertical scroll bar
  57. #define SCROLLFLAG_HSCROLL        0x00020000    // This is a horizontal scroll bar
  58.  
  59. #define LISTFLAG_VLIST            0x00010000    // This is a vertical list box
  60. #define LISTFLAG_HLIST            0x00020000    // This is a horizontal list box
  61. #define LISTFLAG_NOSCROLL        0x00040000    // This list box has no scroll bar
  62. #define LISTFLAG_USEFORMAT        0x00080000    // This list box has a scroll bar
  63. #define LISTFLAG_DBLCLICK        0x00100000    // This list box allows you to doubleclick
  64. #define LISTFLAG_VIEWONLY        0x00200000    // List is viewable only, no currently selected item
  65.  
  66. #define EDITFLAG_NOFRAME        0x00010000    // This is a vertical list box
  67. #define EDITFLAG_NOEDIT            0x00020000    // This is a horizontal list box
  68. #define EDITFLAG_SPIN            0x00040000    // This field has spin buttons
  69. #define EDITFLAG_FIELDCLR        0x00080000    // Use field color for edit control
  70. #define EDITFLAG_NUMERIC        0x00100000    // This field is a numeric field
  71. #define EDITFLAG_CENTER            0x00200000    // Center text in control
  72. #define EDITFLAG_RIGHT          0x00400000    // Right justify text in control
  73. #define EDITFLAG_MULTILINE        0x00800000  // Enter doesn't end editing control.. adds newline instead
  74. #define EDITFLAG_ENTERMSG        0x01000000  // Sends an EDITMSG_ENTERPRESSED instead of ending editing
  75.  
  76. #define DROPFLAG_NOSCROLL        0x00010000    // Don't use scroll bar in drop list
  77. #define DROPFLAG_DRAWSEL        0x00020000    // Draw current item selected
  78. #define DROPFLAG_USEFORMAT        0x00040000    // Draw current item selected
  79. #define DROPFLAG_LISTUP            0x00080000    // Draw list above control
  80.  
  81. STYLE FRAME BITMAP "ClearFrame1"\
  82.   FRAME 14 14 16 16 MARGINS 0 0 4 4 NOCENTER
  83.  
  84. STYLE TEXT BGBITMAP "ClearFrame3"\
  85.   FRAME 5 5 5 5 MARGINS 0 0 4 4 NOCENTER\
  86.   FONT "Med" RECT 3 0 3 0 COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_VCENTER | TEXT_SHADOW DRAWMODE DM_USEDEFAULT
  87.  
  88. STYLE BUTTON\
  89.   NORMAL UP "ClearFrame2" DOWN "FillFrame2"\ 
  90.            FRAME 10 10 12 12 MARGINS 0 0 4 4\
  91.            UPLABEL "Med" COLOR 255 255 255 FLAGS TEXT_CENTER | TEXT_VCENTER | TEXT_SINGLELINE | TEXT_SHADOW\
  92.            DOWNLABEL "Med" COLOR 0 0 0 FLAGS TEXT_CENTER | TEXT_VCENTER | TEXT_SINGLELINE\
  93.            UPLABELRECT 0 0 0 0 DOWNLABELRECT 0 0 0 0
  94.  
  95. STYLE BUTTON\
  96.   TOGGLE UP "CheckU" DOWN "CheckD"\ 
  97.            UPLABEL "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_SHADOW\
  98.            DOWNLABEL "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_SHADOW\
  99.            UPLABELRECT 18 -1 0 0 DOWNLABELRECT 18 -1 0 0
  100.  
  101. STYLE BUTTON\
  102.   RADIO UP "RadioU" DOWN "RadioD"\ 
  103.            UPLABEL "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_SHADOW | TEXT_ELIPSES\
  104.            DOWNLABEL "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_SHADOW | TEXT_ELIPSES\
  105.            UPLABELRECT 18 -1 0 0 DOWNLABELRECT 18 -1 0 0
  106.  
  107. STYLE SCROLLBAR\
  108.     VSCROLL BGBITMAP "VScrollBar" FRAME 6 22 6 22 MARGINS 0 0 4 4\
  109.     UP "VScrollUp" 1 1\
  110.     DOWN "VScrollDown" 1 RELB 12\
  111.     THUMB "VScrollThumb" 19 30 2
  112.  
  113. STYLE SCROLLBAR\
  114.     HSCROLL BGBITMAP "HScrollBar" FRAME 22 6 22 6 MARGINS 0 0 4 4\
  115.     UP "HScrollUp" 1 1\
  116.     DOWN "HScrollDown" RELR 12 1\
  117.     THUMB "HScrollThumb" 19 30 2
  118.  
  119. STYLE LISTBOX\
  120.     VLIST BGBITMAP "VScrollRect" FRAME 8 26 26 26 MARGINS 0 0 4 4 NOCENTER\
  121.     RECT 5 5 23 5 ITEM 1000 16 SELCOLOR 0 112 74\
  122.     FONT "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_VCENTER | TEXT_SHADOW | TEXT_SINGLELINE DRAWMODE DM_USEDEFAULT\
  123.     SCROLLBAR RELRB 21 4 5 4 UP "VScrollUp" 1 1\
  124.         DOWN "VScrollDown" 1 RELB 12\
  125.         THUMB "VScrollThumb" 19 30 2
  126.  
  127. STYLE EDIT\
  128.     NORM BGBITMAP "ClearFrame4" FRAME 5 5 5 5  MARGINS 0 0 4 4 NOCENTER\
  129.     FONT "Med" RECT 4 2 6 2 COLOR 255 255 255 EDITCOLOR 255 255 0 FLAGS TEXT_LEFT | TEXT_SHADOW DRAWMODE DM_USEDEFAULT
  130.  
  131. STYLE EDIT\
  132.     SPIN BGBITMAP "ClearFrame4" RECT 0 0 22 0 FRAME 5 5 5 5  MARGINS 0 0 4 4 NOCENTER\
  133.     FONT "Med" RECT 4 0 6 2 COLOR 255 255 255 EDITCOLOR 255 255 0 FLAGS TEXT_LEFT | TEXT_SHADOW | TEXT_VCENTER DRAWMODE DM_USEDEFAULT\
  134.     SPIN UP "SpinUp" RELR 19 0 DOWN "SpinDown" RELR 19 10
  135.  
  136. STYLE DROPLIST\
  137.     VSCROLL BGBITMAP "ClearFrame4" RECT 0 0 23 0 FRAME 5 5 5 5 MARGINS 0 0 4 4 NOCENTER\
  138.     ITEMRECT 2 3 2 3 DROPBUTTON "DropBtn" RELR 19 1 LISTHEIGHT 100\
  139.     LISTBOX 0 0 5 5\
  140.         BGBITMAP "DropRect" FRAME 8 26 26 26 MARGINS 0 0 4 4 NOCENTER\
  141.         RECT 5 5 23 5 ITEM 1000 16 SELCOLOR 0 112 74\
  142.         FONT "Med" COLOR 255 255 255 FLAGS TEXT_LEFT | TEXT_VCENTER | TEXT_SHADOW | TEXT_SINGLELINE DRAWMODE DM_USEDEFAULT\
  143.         SCROLLBAR RELRB 21 4 5 4 UP "VScrollUp" 1 1\
  144.         DOWN "VScrollDown" 1 RELB 12\
  145.         THUMB "VScrollThumb" 18 29 2
  146.