SHARE
TWEET

EEditor - Add blocks

capasha Jul 10th, 2018 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MainForm
  2.  
  3. - bgInit = Background Blocks
  4. - decorInit = Decoration Blocks
  5. - miscInit = Misc Blocks
  6. - blockInit = Foreground Blocks
  7. -- Should be saved as { BlockID, ImageID }
  8.  
  9.  
  10. - SetupBricks
  11. --
  12.  
  13. - //This is an example how you add blocks.
  14. - //======= Image tiles =========
  15. - //foregroundBMD for foreground
  16. - //backgroundBMD for background
  17. - //decosBMD for decorations
  18. - //miscBMD for misc blocks
  19. - //======= Which id to read from =========
  20. - // 0 = Foreground
  21. - // 1 = Misc
  22. - // 2 = Decorations
  23. - // 3 = Backgrounds
  24. - //======= Which imageid the block(s) have ==========
  25. - // new int[] { 0, 1, 2, 3 }
  26. - //======= Which color the block(s) have ==========
  27. - // new uint[] { 0xFB93B4, 0x772C6C, 0x711620, 0x315364 } or null
  28. - //======= If button should be selected on start =========
  29. - // false
  30. - //======= The tooltip of the block =========
  31. - // "Candy"
  32. - //======= Which blockbar the blocks should be added to =========
  33. - // 0 = Foreground
  34. - // 1 = Action
  35. - // 2 = Decorations
  36. - // 3 = Backgrounds
  37. - //======= Same as above =========
  38. - // 0
  39. - //======= Can the block be placed or just seen? =========
  40. - // true
  41.  
  42.  
  43. //If the user have brickmineral or debug mode is on (F2)
  44. if (ihavethese.Contains("brickminiral") || debug) {
  45.  
  46. AddToolStrip(
  47. foregroundBMD, //Which Image you should take from.
  48. 0, //Which id to read from
  49. new int[] { 70, 71, 72, 73, 74, 75, 76 }, //This is the imageid of the block
  50. new uint[] { 0xEE0000, 0xEE00EE, 0x0000EE, 0x00EEEE, 0x00EE00, 0xEEEE00, 0xEE7700 }, //This is the colors of each block
  51. false, //If button should be selected on start (Grey simple is selected by default)
  52. "Minerals", //Tooltip text for the package
  53. 0, //which blockbar it should be added to
  54. 0, //which blockbar it should be added to
  55. true
  56. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top