panel.example 626 B

123456789101112131415161718192021222324252627282930
  1. {
  2. name = "mymod_mypanel",
  3. player = "singleplayer",
  4. position = { x = 1, y = 0.5 },
  5. alignment = { x = -1, y = 0 },
  6. bg = "panel_bg.png"
  7. bg_scale = { x = 45, y = 28 },
  8. title = "Default",
  9. title_alignment = { x = 0, y = 0 },
  10. title_offset = { x = 0, y = -180},
  11. title_color = 0xFFFFFF,
  12. sub_img_elems = {
  13. player_indicator = {
  14. scale = {x = 2, y = 2},
  15. offset = {x = 0, y = -120},
  16. alignment = { x = 0, y = 0 },
  17. text = "whatever_pic.png"
  18. }
  19. },
  20. sub_txt_elems = {
  21. sub_elem = {
  22. alignment = { x = 0, y = 1 },
  23. offset = {x = 0, y = -130},
  24. text = "Hey, I'm a sub-element!",
  25. }
  26. }
  27. }