grymlax

xml example as lua table

May 7th, 2025 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | Gaming | 0 0
  1. {
  2.     {
  3.         tag="Panel",
  4.         attributes={
  5.             id="panel_red",
  6.             position="-200 0 0"
  7.         },
  8.         children={
  9.             {
  10.                 tag="Button",
  11.                 attributes={
  12.                     id="btn_red",
  13.                     width="100",
  14.                     height="100",
  15.                     text="RED",
  16.                     colors="#FF3322|#FFFFFF|#FFFFFF|#FFFFFF|"
  17.                 },
  18.                 children={
  19.                 }
  20.             }
  21.         }
  22.     },
  23.     {
  24.         tag="Panel",
  25.         attributes={
  26.             id="panel_green",
  27.             position="0 0 0"
  28.         },
  29.         children={
  30.             {
  31.                 tag="Button",
  32.                 attributes={
  33.                     id="BTNgreen",
  34.                     width="100",
  35.                     height="100",
  36.                     text="GREEN",
  37.                     colors="#44FF40|#FFFFFF|#FFFFFF|#FFFFFF|"
  38.                 },
  39.                 children={
  40.                 }
  41.             }
  42.         }
  43.     },
  44.     {
  45.         tag="Panel",
  46.         attributes={
  47.             id="panel_blue",
  48.             position="200 0 0"
  49.         },
  50.         children={
  51.             {
  52.                 tag="Button",
  53.                 attributes={
  54.                     id="BTNgreen",
  55.                     width="100",
  56.                     height="100",
  57.                     text="BLUE",
  58.                     colors="#4466FF|#FFFFFF|#FFFFFF|#FFFFFF|"
  59.                 },
  60.                 children={
  61.                 }
  62.             }
  63.         }
  64.     }
  65. }
Tags: TTS Helps
Advertisement
Add Comment
Please, Sign In to add comment