YouTube2Text

Roblox UI Importing Masterclass — Transcript

by Kek · 41,305 words · 5,606 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Hello everyone. Welcome to another
  2. 0:01tutorial. My name is Kakuza and today in
  3. 0:03this tutorial I'm going to be teaching
  4. 0:05you how to import UIs into Roblox
  5. 0:08Studio. This is going to be a very
  6. 0:09lengthy video. I want you to stick till
  7. 0:11the end. I would like to stress that in
  8. 0:13this entire video I'm going to be using
  9. 0:14this plugin that I've created myself.
  10. 0:16It's called KUI and I'm going to be
  11. 0:19updating it throughout the following
  12. 0:21years. The best things about this plugin
  13. 0:22is that it doesn't have any unnecessary
  14. 0:24stuff. Um, every single thing in this
  15. 0:27plugin I will be showcasing in the
  16. 0:29video. In order to get this plugin, all
  17. 0:31you have to do is go to my Discord
  18. 0:33server, discord.gg/ugen.
  19. 0:35Once you're in, you're going to want to
  20. 0:36go down until you see KUI plugin. Click
  21. 0:40on this. And then you're going to notice
  22. 0:42that I have all these patches and
  23. 0:44updates here. Scroll to the top and
  24. 0:47click on this link. As soon as you click
  25. 0:49on the link, this should open up. All
  26. 0:51you have to do is get the plugin from
  27. 0:53here. Read all of this description. Go
  28. 0:56in Roblox Studio. Click on plugins.
  29. 0:58Manage plugins. And there should be an
  30. 1:00option for KUI here. I think there might
  31. 1:03be something else here. Something like
  32. 1:05install. Once you install, then it
  33. 1:08should open up. There's going to be a
  34. 1:09table of content for you guys. If you
  35. 1:11would like to jump to any specific part
  36. 1:14of the tutorial and only watch that bit.
  37. 1:17So, please utilize that. And apart from
  38. 1:19that, let's get into the video.
  39. 1:28Before we even begin, we should probably
  40. 1:30try to figure out what's meant by UI
  41. 1:31importing. Importing is the process of
  42. 1:34inserting UI elements from a third party
  43. 1:37software into Roblox Studio. Perhaps you
  44. 1:40designed a UI in Figma or Affinity or
  45. 1:42Photoshop and you would like to put it
  46. 1:44inside Roblox Studio. You would have to
  47. 1:46follow some specific protocols or some
  48. 1:48specific procedures. um without doing
  49. 1:51them you will end up with a badly
  50. 1:54positioned or sized UI and we don't want
  51. 1:56that. So in this video you're going to
  52. 1:57be learning how to properly make your UI
  53. 2:00functional in studio. Before we continue
  54. 2:02these are some tips for you guys. Please
  55. 2:04don't skip this part. You have to
  56. 2:06understand the basic differences the
  57. 2:08basic rules of importing so that you can
  58. 2:09finally start importing in an actual
  59. 2:11good manner. A lot of people always ask
  60. 2:14me how do I import from Figma? How do I
  61. 2:16import from Photoshop? If you're making
  62. 2:18an importing tutorial, please don't make
  63. 2:19one for Photoshop, make one for Figma,
  64. 2:21make one for Affinity. You guys have to
  65. 2:24understand exporting and importing are
  66. 2:26different. Exporting is different for
  67. 2:28each software. The way that you have to
  68. 2:31export as a PNG all these separate like
  69. 2:34images and then convert them into PGs,
  70. 2:36that's a different procedure for every
  71. 2:38single software. However, importing is
  72. 2:42the same no matter what software you're
  73. 2:44using because softwares aren't involved
  74. 2:46in importing. When you export, when
  75. 2:48you're done exporting, you already have
  76. 2:50the images, no matter what software it
  77. 2:52is. Now, you have the PNG files. The
  78. 2:55rest is all the same. No matter what
  79. 2:57software you used in the past, if you
  80. 2:59have the images, all you have to do now
  81. 3:01is to match the same structure of your
  82. 3:04UI that you created in your third party
  83. 3:06software, whether it be Figma or
  84. 3:07Photoshop or anything else. and match it
  85. 3:10one to one in studio. So the rest of the
  86. 3:12procedure is going to be same. Every
  87. 3:14time we export an image or something
  88. 3:16from a third party software into studio,
  89. 3:18we're always going to be using PGs. The
  90. 3:20reason is because JPGs don't support
  91. 3:23transparency. Um, every time you export
  92. 3:25something as JPG, it's always going to
  93. 3:28have an opaque background, which means a
  94. 3:30solid color is the background perhaps
  95. 3:31black. And we don't want that. Sometimes
  96. 3:34you're exporting something that requires
  97. 3:35transparency. For example, if it's a PNG
  98. 3:37of a circle, the image itself is still
  99. 3:40going to be a square, but the four
  100. 3:42corners around the circle are going to
  101. 3:44be transparent. JPGs don't support that.
  102. 3:46It's just going to set the color is
  103. 3:48black or gray. However, PGs will keep or
  104. 3:50retain that transparency, which is what
  105. 3:53we want when we're exporting the image
  106. 3:55from a third party software into studio.
  107. 3:56Apart from that, PGs also don't lower uh
  108. 3:59quality. However, JPGs do. And above
  109. 4:02all, the file size. PNGs unfortunately
  110. 4:05have more file size and JPGs have less,
  111. 4:07but it's not noticeable in modern
  112. 4:09computers, so you don't have to worry
  113. 4:10about that. We're going to be exporting
  114. 4:12everything as PGs and nonjpgs. When
  115. 4:14we're exporting from a third party
  116. 4:16software into Studio, we're not going to
  117. 4:19export texts. Text is always going to be
  118. 4:23customizable or modifiable inside Roblox
  119. 4:26Studio. We're not going to export this
  120. 4:29because if we exported this text as for
  121. 4:31example an image, it would not be
  122. 4:33editable inside studio and that's not
  123. 4:35what we want. This is not always the
  124. 4:38case. For example, if you have this text
  125. 4:40here and let's say that I'm using a text
  126. 4:43that doesn't exist in Roblox Studio. For
  127. 4:45example,
  128. 4:46this one. And this this is the exact
  129. 4:50text that I want to be on the header.
  130. 4:52Something like this. Uh maybe make it a
  131. 4:54bit smaller. So in this case that I know
  132. 4:57that I don't want it to be editable
  133. 4:59inside Roblox Studio. And this is
  134. 5:00exactly how it's going to be. Then I can
  135. 5:02rasterize it and then export, right? But
  136. 5:06since I don't want that, I want it to be
  137. 5:07editable in Roblox Studio. We're going
  138. 5:08to keep it this way. Before importing or
  139. 5:10uploading images to Roblox, make sure
  140. 5:12that you never ever use your main
  141. 5:14account. Always have an AL account for
  142. 5:16importing every single thing into
  143. 5:18Roblox. It could be an SFX file as sound
  144. 5:21effect or it could be a texture. It
  145. 5:23could be an image like we're doing in
  146. 5:25this UI importing tutorial. It could be
  147. 5:27anything. Just never do it on your main
  148. 5:29account because Roblox moderation is
  149. 5:31really weird and they will flag you, ban
  150. 5:33you, perhaps sometimes they won't even
  151. 5:35unban you even if you're in the right.
  152. 5:37So, what you have to do is never ever
  153. 5:39use your main account. One more thing
  154. 5:40that you guys have to keep in mind is
  155. 5:42that when you're exporting an image, if
  156. 5:44the file size or the size of the image
  157. 5:46or the resolution is above 1024x 1024
  158. 5:49pixels, Roblox is going to downsize it.
  159. 5:51So, every time you're exporting an
  160. 5:53image, even if it's a full screen UI,
  161. 5:55you'll have to cut it in bits, perhaps
  162. 5:56by using scale that we'll be looking at
  163. 5:59in this video, or by cutting it into
  164. 6:02different parts, separating it into
  165. 6:03different uh pieces. However, even a
  166. 6:05full screen UI normally doesn't require
  167. 6:07you to export an image that's bigger
  168. 6:09than 20 24x 1024 pixels. You can always
  169. 6:12just do it in a different manner,
  170. 6:14different sections of the entire UI. So
  171. 6:16yeah, always export under 1024 x 1024
  172. 6:20when you're importing UIs or basically
  173. 6:22doing anything lengthy like making UIs
  174. 6:24or anything. This is a general advice.
  175. 6:26Please always remember to control S or
  176. 6:29save your work while you're doing it.
  177. 6:31Most of the time what happens is that
  178. 6:33people will be working and then their
  179. 6:34computers are going to crash. This
  180. 6:36happened to me personally while
  181. 6:37recording my last video. Sometimes the
  182. 6:39file gets corrupted and there's no way
  183. 6:41of obtaining it back. So, it's just more
  184. 6:43advised that you guys always save. So,
  185. 6:46throughout this video, while you're also
  186. 6:47importing, make sure that you keep
  187. 6:49saving or downloading a copy or saving
  188. 6:51to Roblox. So, to start off, I'm going
  189. 6:54to be teaching you guys how to export a
  190. 6:56UI from different softwares. We're going
  191. 6:59to be exploring Photoshop, Figma,
  192. 7:01Affinity, Photop, and we're going to be
  193. 7:03seeing what's the proper method to
  194. 7:06import from all of these various
  195. 7:08softwares. So, once we're in Photoshop,
  196. 7:10we're going to open up our UI. This is a
  197. 7:12UI that was created by a person called
  198. 7:14Slick. So, as you can see, we have a
  199. 7:16header here. This is our cross button.
  200. 7:18This is all the text. This is going to
  201. 7:20be a text box inside the UI. We're going
  202. 7:23to expand on that in Roblox Studio. And
  203. 7:25this is going to be a button. So, we can
  204. 7:28see that we have these layers here.
  205. 7:30We're going to expand this the way that
  206. 7:32we've designed our UI. So, first thing
  207. 7:35that we're going to do is we're going to
  208. 7:37go to the header. And we can see that
  209. 7:40there are all these layers here. We have
  210. 7:41a gradient overlay on the header and
  211. 7:44everything. We have a texture on top and
  212. 7:45then we have the text. So what we're
  213. 7:47going to do is we're going to hide the
  214. 7:51text layer. And then we're going to
  215. 7:53select all of this stuff. So you can see
  216. 7:55that this is just the header. Even
  217. 7:57though the selection is showing it as if
  218. 7:59it's way more, but we're only using this
  219. 8:01stuff, right? So we're going to select
  220. 8:04only this stuff. And then we're going to
  221. 8:05press Ctrl E or we're going to
  222. 8:07rightclick and then click on merge
  223. 8:09layers. As soon as we merge them, this
  224. 8:11is now going to become one specific
  225. 8:13image. Now this image can be exported
  226. 8:15into Roblox Studio very simply. If we
  227. 8:18were to export all of these separately,
  228. 8:20there would be way too much problems.
  229. 8:22You know, we would have to first of all
  230. 8:23separate these. We would have to open
  231. 8:25the uh texture. We would have to convert
  232. 8:29the texture from a smart object into a
  233. 8:30normal rasterized layer. And then we
  234. 8:33would have to delete everything outside
  235. 8:35of the header like this. And then we
  236. 8:38would have to separate like export all
  237. 8:39of them separately. And that's not what
  238. 8:41we want when we're importing. We want
  239. 8:43our job to be simplified. Anything that
  240. 8:45does not need to be exported separately
  241. 8:47does not have to be exported separately.
  242. 8:50So we're going to merge all of these
  243. 8:52three layers. Now that we have this one
  244. 8:54layer, as you can see, you know, we have
  245. 8:57only one layer. If I was to go ahead and
  246. 8:58change the color only the color of like
  247. 9:00the entire header is going to be
  248. 9:02changed. So what we're going to do is
  249. 9:03we're going to name it differently.
  250. 9:05We're going to change the name to
  251. 9:06perhaps header bg. So this is the
  252. 9:09header's background and then there's
  253. 9:11going to be text on top in studio,
  254. 9:12right? So we're going to right click
  255. 9:14this and click on quick export as PNG.
  256. 9:16It's already going to be named like this
  257. 9:18because we already renamed it to
  258. 9:19headerbg in Photoshop. So, I always
  259. 9:21recommend naming layers uh when you're
  260. 9:24working in Photoshop so that when you
  261. 9:26have to quick export them, it will
  262. 9:27always be named that way. So, we're
  263. 9:30going to save. Now that we're done, we
  264. 9:32can quickly verify that we have this
  265. 9:34same specific image by going in file
  266. 9:37place.
  267. 9:39[snorts] We have the same image that we
  268. 9:41just exported without any loss in
  269. 9:43quality. Apart from that, uh there are
  270. 9:46some other stuff that we have to keep in
  271. 9:47mind. For example, sometimes we will
  272. 9:50have a image that has a glow beneath it.
  273. 9:53So for example, in Photoshop we have
  274. 9:55this. Now if we have to export this, we
  275. 9:58already know what we have to do for like
  276. 10:00without the glow, right? We have to
  277. 10:02separate the text, hide it. So we if we
  278. 10:05have these, we can see that these are
  279. 10:06the five layers for everything, the
  280. 10:08entire cross button. We're going to Ctrl
  281. 10:11E or right click, merge layers. Now we
  282. 10:15have the entire cross button. So in this
  283. 10:18scenario that we also have a glow, what
  284. 10:20we need to do is we are going to go to
  285. 10:23the group that has it or if the layer
  286. 10:25has it, it could also be on this layer.
  287. 10:28We are going to rightclick and create
  288. 10:30layer. Now the glow is automatically
  289. 10:32going to pop up beneath the group. As
  290. 10:35you can see, if I was to hide the entire
  291. 10:37group, I already have the glow here. So
  292. 10:39what we're going to do is we're going to
  293. 10:40rightclick it and then click on quick
  294. 10:42export as PNG. And then we can call it
  295. 10:44cross button glow and then enter. And
  296. 10:48now we should have it. And we can also
  297. 10:50quickly go and export this call it cross
  298. 10:55button. Now if we were to embedded both
  299. 10:58of these, place them. As we can see, we
  300. 11:00have both of them together. So we can
  301. 11:02move them around and we have the same
  302. 11:04thing that we had in earlier. One more
  303. 11:07thing that we might come across when
  304. 11:08exporting from Photoshop is that we
  305. 11:10might sometimes have a mask on any
  306. 11:13specific layer. For example, if you have
  307. 11:15this header, we can go ahead and create
  308. 11:17a mask on it. Right? So, if we have a
  309. 11:19mask and let's say that this mask is
  310. 11:21hiding a specific part of this image
  311. 11:23like maybe this part or whatever else
  312. 11:27part you know everybody might have on
  313. 11:29their header. So if we have this
  314. 11:32specific thing like we have this block
  315. 11:34that's cut off from the header, we have
  316. 11:36to export it with that mask that should
  317. 11:39be applied before we export it. What we
  318. 11:42have to do is we have to right click and
  319. 11:44then click on apply layer mask. Now this
  320. 11:48image itself has lost the mask and it's
  321. 11:51become this way. Now we can export it
  322. 11:53and we would get the same intended
  323. 11:55result. Headerbg2
  324. 11:58place embedded.
  325. 12:01There we go. Alternatively, if you guys
  326. 12:04don't want to export with the mask, we
  327. 12:06can also rightclick it and delete layer
  328. 12:08mask and we should have it. So, that's
  329. 12:11how you export from Photoshop. I'm going
  330. 12:12to be explaining the importing very
  331. 12:14detailed. So, please stick around and
  332. 12:17keep watching. So, in Figma, I'm
  333. 12:19currently using the website version.
  334. 12:21However, you can use the desktop
  335. 12:23application if you'd like. I opened this
  336. 12:26UI that was created by not war. It's
  337. 12:28also being given away for free in my
  338. 12:30discord server. So you can go and get
  339. 12:32the FIG file from there. Open the file
  340. 12:35in Figma. We should have this in front
  341. 12:37of us. We have to follow the same thing
  342. 12:39that I told you guys earlier. We're not
  343. 12:40going to be exporting text labels. We're
  344. 12:42going to be exporting everything that is
  345. 12:44not a text. So in this case, for
  346. 12:47example, we have this main frame right
  347. 12:49here. Apart from this, we have these
  348. 12:52small blocks that are holding like
  349. 12:55everything here. For example, this icon
  350. 12:57and then this text, stock, currency,
  351. 13:00buttons, and then this rarity. Um, we
  352. 13:03have to export these blocks separately
  353. 13:07from the main frame and then this
  354. 13:08separately and then this separately.
  355. 13:10Keep it all modular and easy to use.
  356. 13:13This is also going to be, I'm assuming,
  357. 13:15turned into a scrolling frame, but we're
  358. 13:17going to get into all of that later.
  359. 13:18What we're going to do for now is we're
  360. 13:20going to get started on the main frame.
  361. 13:22So, we're going to come here, expand the
  362. 13:24layers. We have this stuff. We're going
  363. 13:27to select the main frame and the header
  364. 13:29together. And then we're going to group
  365. 13:30them by pressing Ctrl G. As soon as we
  366. 13:33group them, we're going to expand
  367. 13:34everything. We're going to hide all the
  368. 13:36text layers. And now we should have
  369. 13:38this. If we clicked this, and then went
  370. 13:40to export on the bottom right,
  371. 13:43expanded it, and we should be able to
  372. 13:44see this. We're going to select PNG and
  373. 13:46then we're going to change the size to
  374. 13:48whatever we want. I'm going to go with
  375. 13:501x because we want to keep the size the
  376. 13:52same so there's no compression or loss
  377. 13:54of quality. And then we're going to
  378. 13:56click on export. As soon as I clicked on
  379. 13:58that, I opened this thing. I'm going to
  380. 14:00put this back in. And as you can see, we
  381. 14:02have the same thing that we exported. So
  382. 14:04this is how you export a basic image in
  383. 14:06Figma. In order to do glows, we're going
  384. 14:09to follow a bit of a different method in
  385. 14:11Figma than we do in Photoshop. So, this
  386. 14:13is our close button. There's two ways to
  387. 14:16export glows in Figma or even create
  388. 14:18glows in Figma. What we're going to do
  389. 14:20is we're going to go to the main frame
  390. 14:22that's holding this little rounded
  391. 14:25rectangle. And then we're going to
  392. 14:26duplicate it, place it beneath
  393. 14:28everything, so it's beneath in the
  394. 14:32Z-indexes or the order of precedence.
  395. 14:35And then we're going to click on
  396. 14:37effects, drop shadow, and then we're
  397. 14:39going to change the Y position to zero.
  398. 14:42We're going to change the blur to
  399. 14:43something like 30. We're going to change
  400. 14:45the spread to something like 20. And
  401. 14:48then we're going to change opacity 100.
  402. 14:51We can change the color to whatever you
  403. 14:52want. Something like this maybe. And now
  404. 14:55if we zoom out, I want to export the
  405. 14:58glow like this. Even if it doesn't look
  406. 14:59good, just for the sake of the tutorial.
  407. 15:02We're going to select the glow that we
  408. 15:05got earlier. We can move it around. We
  409. 15:07see that this thing here exists. Now,
  410. 15:10when we're exporting the glow, we don't
  411. 15:12want anything like this to be present
  412. 15:14because of how Roblox scaled stuff. The
  413. 15:17there were like some small edges that
  414. 15:19were being shown. This would mess up the
  415. 15:21entire look of our UI. So, what we want
  416. 15:23to do is we want to click on this. We're
  417. 15:24going to remove the fill, one of them.
  418. 15:27And then this fill, we're going to
  419. 15:29change it to 0.1%.
  420. 15:32So, we still have this thing, this
  421. 15:34little rectangle, and that's because a
  422. 15:36main frame has a stroke on it. we can
  423. 15:39just go ahead and hide the stroke. So
  424. 15:41now we [music] have this and this is how
  425. 15:42a glow in Figma can be. So now there is
  426. 15:45a different way of doing this which is a
  427. 15:47better way in my opinion. What I'm going
  428. 15:49to do is I'm going to delete this. I'm
  429. 15:51going to come here. I'm going to
  430. 15:52duplicate this. Put it beneath
  431. 15:54everything again. But this time instead
  432. 15:56of using uh drop shadow, we're going to
  433. 16:00be using layer blur. So we're going to
  434. 16:01come here, change this to layer blur.
  435. 16:05Now we can change it to something like
  436. 16:0630 or maybe 50. Now we're just going to
  437. 16:10remove the stroke. We're going to remove
  438. 16:13the fill. And this is going to stay the
  439. 16:16same. We we need this fill for the sake
  440. 16:18of this glow.
  441. 16:21And now we have the glow. And if we want
  442. 16:24to make this glow more intense or we
  443. 16:26want to make it more visible, what we
  444. 16:29have to do is we have to duplicate the
  445. 16:31glow right here. And then we have to
  446. 16:33duplicate it again. And so now what
  447. 16:35we're going to do is we're going to
  448. 16:36select all of these, select the first
  449. 16:38one, and then hold control, select the
  450. 16:39second one, and then the third one. And
  451. 16:41then we're going to press CtrlG or right
  452. 16:44click and then group selection. Now we
  453. 16:47have the glow separately. We can change
  454. 16:49the name to glow. And then we can come
  455. 16:51here, export glow.
  456. 16:55And there we go. So now we have the glow
  457. 16:58as a normal basic PNG. We can put it
  458. 17:00back here. And there we go. That's how
  459. 17:02it's going to look in studio. So in
  460. 17:04designers affinity, what we're going to
  461. 17:06do is we're going to open up the
  462. 17:07application and then we're going to open
  463. 17:09up the UI. This one was created by
  464. 17:11Radical. We're going to expand the
  465. 17:14layers here. This is our frame. And then
  466. 17:16we're going to expand this. And now I
  467. 17:18have this UI. So I'm going to be
  468. 17:20exporting this bar like this sort of
  469. 17:22header. In order to export the header,
  470. 17:24what I need to do is I'm going to hide
  471. 17:26the text. So, as soon as I click on
  472. 17:27this, I'm going to hide the text cuz
  473. 17:30remember, we're never going to use text
  474. 17:32in exporting because text is always
  475. 17:34going to be written inside studio. We're
  476. 17:37going to create the overall design and
  477. 17:39then we're going to export everything
  478. 17:40that's not a text unless the text has
  479. 17:42something extra on it that cannot be
  480. 17:44replicated in studio. That's when we'll
  481. 17:46have to export the text as an image
  482. 17:48label. However, we need to understand
  483. 17:50that once we do that, we will never be
  484. 17:52able to modify that text inside studio.
  485. 17:56So only export text that you really
  486. 17:58really want to look the same without any
  487. 18:01minor differences. I'm going to click on
  488. 18:03this and then I'm going to change it to
  489. 18:06like title bar and then I'm going to
  490. 18:08click on export PNG right here. So now
  491. 18:11that I have it, let's go and see what it
  492. 18:13looks like. There we go. We have it
  493. 18:15right here. So that's how you export a
  494. 18:17basic bar in Affinity. You'll have to go
  495. 18:19through every single layer and export it
  496. 18:21one by one. um if it has any effect on
  497. 18:24it, for example, it has an inner shadow
  498. 18:26or something else, something of the
  499. 18:28sort, then you'll just have to rasterize
  500. 18:30the main layer and then export it. For
  501. 18:32example, this is a main frame that I
  502. 18:34have. This is an inner shadow with an
  503. 18:35effect on it and whatnot. All I have to
  504. 18:38do is I have to click on this rasterize.
  505. 18:41Now, this is completely rasterized. It's
  506. 18:43one layer. Then I can export it and it
  507. 18:45will be done. As you can see, it's just
  508. 18:47one layer. In order to export a glow in
  509. 18:50Affinity, what you would have to do is
  510. 18:52let's go here to this frame and we're
  511. 18:54going to expand it. We hit the text a
  512. 18:56while ago. We're going to add glow to
  513. 18:59this frame. So, let's quickly go in
  514. 19:01effects, add our glow, make it a bit
  515. 19:05bigger.
  516. 19:06Something like this. And for the sake of
  517. 19:09this video only, I know it doesn't look
  518. 19:10good, but bear with me. Now, what we're
  519. 19:13going to do is we're going to hide the
  520. 19:16stroke.
  521. 19:17So we can see it's [music] hidden. And
  522. 19:19now what we want to do is we want to
  523. 19:21change the fill color to white. So now
  524. 19:24as you can see the entire thing has
  525. 19:26become white. If you were to export this
  526. 19:28as a PNG for example, let's quickly
  527. 19:30export this. And now if I opened it in
  528. 19:32Infinity, this is what it looks like. So
  529. 19:34as we can see it's a PNG. So now if you
  530. 19:37export this into studio, you'll have to
  531. 19:39color it in studio. Um which is a bit
  532. 19:42more of a flexible approach which I
  533. 19:43like. So in studio you would just
  534. 19:45perhaps change the image color three
  535. 19:47after importing this or you would add a
  536. 19:49UI gradient on it so that you can also
  537. 19:51modify it as a gradient which is a very
  538. 19:54nice thing to have. That's how you
  539. 19:55export a glow in definity. So now I'm on
  540. 19:59photo. So in order to export this header
  541. 20:03what we're going to do is in photo we
  542. 20:05have a very difficult or lengthy way to
  543. 20:09do this. So I don't recommend using
  544. 20:10photo anyways. the interface is quite
  545. 20:12old and it has conventional methods.
  546. 20:15There's much more newer ways to do
  547. 20:17stuff, but if you're still going to
  548. 20:18stick to photop, what we're going to do
  549. 20:20is we're going to, for example, go to
  550. 20:22this header. We're going to merge all of
  551. 20:24this together, right? And then you're
  552. 20:27going to convert this to a smart object.
  553. 20:29And then you're going to doubleclick
  554. 20:30right here. A separate file is going to
  555. 20:33open up. And then you can go to file,
  556. 20:36uh, export as PNG. Save. Now you have a
  557. 20:40PNG file. You can go back to the codes
  558. 20:42file. And then if you were to drag it
  559. 20:45here, you can see that we now have it.
  560. 20:47There's also another way to do this. You
  561. 20:49can go to file and then export layers.
  562. 20:52This is going to open up this menu. You
  563. 20:54can select uh only exporting layers
  564. 20:57whose name starts with minus E minus or
  565. 20:59dash E dash. Um you would have to name
  566. 21:02all these layers separately. Uh add a
  567. 21:04dash Eyee dash before them, the ones
  568. 21:06that you want to export. Or apart from
  569. 21:08that, you could just uncheck this
  570. 21:10option. It would export everything as a
  571. 21:12PNG. And there's like a bunch of options
  572. 21:15here. But again, this is going to be a
  573. 21:17bit tricky cuz most of the time you
  574. 21:19don't want to export everything. There's
  575. 21:21going to be text labels and then there's
  576. 21:23going to be blending options. Sometimes
  577. 21:24you want to uncheck something, masks,
  578. 21:26and it gets a bit tricky. So this um is
  579. 21:29not [music] a very satisfactory
  580. 21:32application or website to use. Lastly,
  581. 21:35if you have a glow on, for example, the
  582. 21:37close button like we did in Photoshop.
  583. 21:41So, we made the glow. So, what we can do
  584. 21:42now is we can easily go to the layer.
  585. 21:45Uh, click on the effect, create layers,
  586. 21:47and then we can move around the effect
  587. 21:49pretty simply. If you are trying to move
  588. 21:51it around and you can't select it, it's
  589. 21:53because you have auto select selected
  590. 21:54right here, which is making you select
  591. 21:57everything on top. So, turn this off,
  592. 21:59then select the outer glow, and then you
  593. 22:00can move it around. And then you can
  594. 22:01also do the same thing to it. convert to
  595. 22:04smart object and then double click right
  596. 22:06here and then you can go to file export
  597. 22:09as PNG. Done. Once we're in Roblox, what
  598. 22:13we're going to do [music] is we're going
  599. 22:15to first come here, turn off KUI for a
  600. 22:17second. We're going to go back to it
  601. 22:19later. You're going to see this small
  602. 22:20settings icon right here. Click on the
  603. 22:23settings icon and then turn on device
  604. 22:25emulation. You're going to be using this
  605. 22:27a lot in your UI making or importing
  606. 22:31process. This is very important. It will
  607. 22:33allow you to scale your UIs across
  608. 22:35different devices. If you click on it,
  609. 22:37you are able to see a lot of different
  610. 22:38resolutions. These are your phone
  611. 22:40resolutions, your tablet resolutions,
  612. 22:42your desktop console, and virtual
  613. 22:45reality. Um, the main ones that I would
  614. 22:48recommend using is obviously 1080p and
  615. 22:51then VGA just to see how nicely you've
  616. 22:54scaled your uh entire UI. VGA is
  617. 22:56probably the one that I use the most
  618. 22:58apart from iPhone 14 Pro. These are the
  619. 23:01three that I use the most. iPhone 14 Pro
  620. 23:031080p and VGA. They show you all these
  621. 23:06different resolutions like very
  622. 23:08landscape uh you know the normal
  623. 23:10resolution 1080p that you will be
  624. 23:12playing on and the sort of square
  625. 23:15resolution that is VGA. So we're going
  626. 23:17to enable 1080p for now. Uh another way
  627. 23:20to open device emulator if you have it
  628. 23:22off right here or if you can't find it
  629. 23:23here is by going in test device
  630. 23:25emulator. And there we go. Now, we're
  631. 23:27going to see how to upload images into
  632. 23:29Roblox. There are two main ways. This is
  633. 23:31the basic basic step of importing. So,
  634. 23:33please focus and try to replicate what
  635. 23:35I'm doing. You're going to go to
  636. 23:36homepage and then click on asset manager
  637. 23:39right here. You're going to see all
  638. 23:41these different options, places, images,
  639. 23:43meshes, packages, audio, and models.
  640. 23:45We're only going to be using images. So,
  641. 23:47what you're going to do is you're going
  642. 23:49to click on this bulk import icon. Also,
  643. 23:53you can call it the upload icon. You
  644. 23:55click on this and then this menu will
  645. 23:57open up. You're going to select the
  646. 23:58image that you want to import into
  647. 24:01Roblox. You can also select multiple
  648. 24:03images, which is the best thing about
  649. 24:05this method of importing. So, come here
  650. 24:07and for example, if I want to upload
  651. 24:09this circle, I'm going to click on this.
  652. 24:12As you can see, this small menu popped
  653. 24:14up and it told me that I'm done
  654. 24:16importing my little circle. It tells me
  655. 24:19the name and a small icon uh detailing
  656. 24:22that it's an image label. Same as here.
  657. 24:24This stuff does not have any relation to
  658. 24:27your images. So you don't have to worry
  659. 24:29about that. Just close it. And then you
  660. 24:32have your image here. After you're done
  661. 24:33importing, in order to use this image in
  662. 24:36your UI, uh we will have to get its
  663. 24:39asset ID in order to put it inside our
  664. 24:41image label and then let Studio
  665. 24:43understand that this is the image that
  666. 24:45we want to be shown in our UI. So the
  667. 24:47way to get your asset ID is by
  668. 24:49right-clicking this image right here and
  669. 24:50then clicking copy ID to clipboard. If I
  670. 24:53was to go ahead and quickly controlV
  671. 24:55this ID, you can see that I have my ID
  672. 24:58right here. This is what we're going to
  673. 25:00be using. Another way to upload images
  674. 25:02into Roblox is by going on
  675. 25:04create.rollbox.com
  676. 25:06and then clicking on creations. Click
  677. 25:08development items. Select decals and
  678. 25:12then you should have an option for
  679. 25:13uploading assets. You can click images
  680. 25:15to see that it says here images can only
  681. 25:17be generated by the system. Upload a
  682. 25:19decal to add images to your inventory.
  683. 25:21meaning we have to upload decals in
  684. 25:23order for them to be treated as images
  685. 25:25rather than uploading images ourselves.
  686. 25:28So we're going to come to decals and
  687. 25:29then we're going to click on upload
  688. 25:30asset. This small page is going to pop
  689. 25:32up. What we have to do now is click on
  690. 25:34upload. Select the circle that we
  691. 25:36selected before and it's going to be
  692. 25:38selected right here. We can change the
  693. 25:40name as we want. We can add a
  694. 25:42description but we will not be needing
  695. 25:43anything like that. What we're going to
  696. 25:45do is we're going to click on upload.
  697. 25:47Now as you can see I have my circle
  698. 25:49right here. In order to get its asset
  699. 25:51ID, all I have to do is hover my mouse
  700. 25:53over it and then click on these three
  701. 25:55buttons, leftclick, and then copy asset
  702. 25:58ID. I can paste it again to see if it
  703. 26:00worked or not. And there we go. I got
  704. 26:02the asset ID itself. So, this is what we
  705. 26:04will be using. You might also be
  706. 26:06wondering, there was some text behind it
  707. 26:08earlier. Uh, this is just Roblox's way
  708. 26:11of labeling an asset ID. We will not be
  709. 26:13using this part to put in our image
  710. 26:16labels, but you can also type it in the
  711. 26:18back. it won't really change much, so
  712. 26:19you don't have to worry about that. So,
  713. 26:20that's how you upload images into Roblox
  714. 26:22Studio. Now, we're going to talk about
  715. 26:24GUI objects and how they work and also
  716. 26:26some extra stuff like how to import
  717. 26:28round progress bars and how to properly
  718. 26:31make imported bars work. So, let's go
  719. 26:33and start a GUI and create our first
  720. 26:35thing that we're going to be looking at,
  721. 26:37screen GUI. So, what is a screen GUI? A
  722. 26:40screen GUI is basically a storage
  723. 26:42container for all your 2D objects inside
  724. 26:45of your game. It will only work if it's
  725. 26:47placed under starter GUI. It will not
  726. 26:49work anywhere else. We're going to
  727. 26:51quickly go through the properties of
  728. 26:53screen GUI and we're only going to
  729. 26:55mention the important ones. Um, if you
  730. 26:58see here, we have screen insets. Uh,
  731. 27:00sometimes what you're going to do is you
  732. 27:02are going to create a full screen UI and
  733. 27:04it's going to scale weirdly on mobile.
  734. 27:07As you can see, the blue line is drawn
  735. 27:09here. This means that the full screen UI
  736. 27:11will not be scaling across here because
  737. 27:14this part is going to be clipped and
  738. 27:16this part is going to be clipped. Um, so
  739. 27:19this option allows you to decide whether
  740. 27:21you do want it that way or not. You
  741. 27:23could click on none. And as you can see
  742. 27:25now, it's going to show the entire UI
  743. 27:27all over your mobile screen. Um, this is
  744. 27:30a matter of choice. Maybe you would like
  745. 27:32it, maybe you won't. So, it's your
  746. 27:34decision what you want to do with it.
  747. 27:35Next up, we have display order. This
  748. 27:37practically acts like a z-index for
  749. 27:39screen GUIs. If we have multiple screen
  750. 27:41GUIs that have frames inside of them and
  751. 27:43the system has to decide which screen
  752. 27:45GUI is going to show up on top of which
  753. 27:47screen GUI, the display order is what
  754. 27:49handles that sort of behavior. Next up,
  755. 27:51we have enabled. If there's something
  756. 27:53inside of the screen GUI, we can enable
  757. 27:55or disable it. Ignore GUI insert
  758. 27:57basically does it so that the UI will
  759. 28:00show up where it needs to without
  760. 28:02getting influenced by the position of
  761. 28:04the existing UI that Roblox has in their
  762. 28:07system. Next up we have name. This is
  763. 28:09just to change the name of the screen's
  764. 28:10UI. Something like this would change the
  765. 28:11name to that. And we're going to control
  766. 28:13Z that. Then we have parent reset on
  767. 28:15spawn literally does it so that if you
  768. 28:18have the UI visible on your screen while
  769. 28:20you're playing the game and you die, the
  770. 28:23UI would reload. And then Z-index
  771. 28:25behavior. You don't have to get into
  772. 28:26that. Just keep it sibling all the time.
  773. 28:28Next up, we have billboard GUI. As you
  774. 28:30can see, billboard GUI is actually a
  775. 28:32storage container for objects that are
  776. 28:34present inside of the 3D world. We're
  777. 28:36going to quickly go through its
  778. 28:37properties. First, we have the option
  779. 28:39active. You will notice that some
  780. 28:40objects are clickable and some objects
  781. 28:42are not clickable. You will notice that
  782. 28:44your mouse changes to that sort of
  783. 28:46little clicking icon. Uh active is the
  784. 28:49property that decides whether it's going
  785. 28:51to happen or not. If you have this
  786. 28:52deselected, it won't do that. And if you
  787. 28:54have it selected, it will. Always on top
  788. 28:57will make sure that the UI completely is
  789. 28:59always on top. If you were to select
  790. 29:01this, you can see that it shows up on
  791. 29:03top. Uninfluenced by anything. So, we're
  792. 29:05going to disable that real fast. Enable
  793. 29:07just means whether it's showing or not.
  794. 29:09Light influence will determine how much
  795. 29:11your atmosphere or the lighting in your
  796. 29:13game is going to be influencing your
  797. 29:15billboard GUI and the objects present
  798. 29:17inside of it. Max distance is just a
  799. 29:20value that you can put to choose how far
  800. 29:23away the camera would still spot the
  801. 29:25billboard GUI. Reset on spawn again just
  802. 29:27means that if the billboard GUI is
  803. 29:29showing and the player resets, then the
  804. 29:31Billboard GUI will just reload. Sizes
  805. 29:34can just be in scale or offset. It's the
  806. 29:36basic concept. If you don't understand
  807. 29:38what sizing and positions are, please go
  808. 29:39and check my first video. Start offset
  809. 29:41means how much you want to change its
  810. 29:43position from its existing point. The
  811. 29:45existing point would pretty much be the
  812. 29:47primary part of its parent or exactly in
  813. 29:49the center of whatever it's a child of.
  814. 29:52You could go ahead and maybe change the
  815. 29:54studs offset to 10 in the center to put
  816. 29:57it vertically up by 10 studs. As we can
  817. 30:00see, it moved up by 10 studs. And yeah,
  818. 30:02that's pretty much all studs offset
  819. 30:04does. X-axis would move it a bit to the
  820. 30:06left side or the right side. And Z would
  821. 30:08bring it closer to the camera or farther
  822. 30:10away from the camera. clip descendants
  823. 30:11just does it so that everything that's
  824. 30:13inside this billboard GUI would get
  825. 30:15clipped and wouldn't show if it extends
  826. 30:18outside of the box of the billboard GUI.
  827. 30:21As we can see, we have this little
  828. 30:22rectangle here. If there was a frame
  829. 30:25inside of it that was to extend outside
  830. 30:27of this box, it would not show the part
  831. 30:30that's extending outside of it. So, a
  832. 30:32surface GUI is basically again a storage
  833. 30:34container for your GUI objects. And this
  834. 30:36attaches itself on top of an on top of a
  835. 30:39part inside of your Roblox Studio. This
  836. 30:41can also act as a texture. If you were
  837. 30:43to click it, you can see that it shows
  838. 30:45up on top of this part right here.
  839. 30:47Active just means whether you can select
  840. 30:48it or not. If you were to hover your
  841. 30:50mouse on top of this, you would be able
  842. 30:52to click it. Otherwise, if it was
  843. 30:55disabled, you would not be able to click
  844. 30:56it. Adori means the part that it has
  845. 30:59been attached to. As we can see, the
  846. 31:01part exists in workspace, but the
  847. 31:03surface GUI exists in starter GUI. So in
  848. 31:06order to attach the surface GUI to the
  849. 31:08part, we would have to put its adorni on
  850. 31:10that part. Always on top just means that
  851. 31:12even if the camera is being blocked by
  852. 31:15some other object, the surface GUI would
  853. 31:17still show on top regardless of the
  854. 31:20obstacle. Enabled just means if the GUI
  855. 31:22is enabled or disabled. Face means on
  856. 31:24what side of the part the surface GUI is
  857. 31:28being shown. It could be the left,
  858. 31:30bottom, right, front, back. Light
  859. 31:32influence is basically a factor of how
  860. 31:34much the existing atmosphere or the
  861. 31:36environment is influencing [music]
  862. 31:38the brightness or the texture or the
  863. 31:42contrast of the frames inside of the
  864. 31:45surface GUI. Max distance is a value
  865. 31:47that you can manually put. It will
  866. 31:49determine how far away you can look at
  867. 31:51the surface GUI from. And if you're
  868. 31:53beyond that specific value of studs, you
  869. 31:55will not be able to see the surface GUI.
  870. 31:57It will get instantly hidden. Reset on
  871. 31:59spawn just means that if you were to
  872. 32:01die, the UI would instantly do a reload.
  873. 32:03It will not save. Clip descendence means
  874. 32:05that if there was any part inside of the
  875. 32:07surface UI that was extending outside of
  876. 32:09it. The surface UI would clip it and it
  877. 32:11would not show outside of the box
  878. 32:13itself. Pixels per stud is just a simple
  879. 32:15unit for measurement. It determines how
  880. 32:18much pixels are going to be present per
  881. 32:20stud. Quite literally, no need to think
  882. 32:22too hard about it. Just think about it
  883. 32:23in a very simplistic way. It's very easy
  884. 32:25to understand. Next, we're going to
  885. 32:27focus on screens UI and we're going to
  886. 32:28understand how hierarchies work. So, a
  887. 32:31hierarchy basically means an order of
  888. 32:34how the UI has been laid out. So, if you
  889. 32:37were to go to starter GUI and create a
  890. 32:39screen GUI and inside the screen GUI,
  891. 32:42let's create a frame and put this in the
  892. 32:44center. Remove background and fit to
  893. 32:46parent size. Um, we have just quickly
  894. 32:48created a very small hierarchy. Our
  895. 32:51hierarchy would just be a frame that is
  896. 32:53a child of a screen GUI which is a child
  897. 32:56of starter GUI. So this is our small
  898. 32:59hierarchy right here. While importing it
  899. 33:01is absolutely crucial to understand that
  900. 33:04we have to be very careful with how we
  901. 33:06lay out our UI. If we have a button
  902. 33:09that's below a holder frame, we
  903. 33:11obviously won't be able to see that
  904. 33:12button. So we have to understand
  905. 33:14Z-indexes and how the overlapping and
  906. 33:16parenting works. Let's go ahead and
  907. 33:18quickly understand what a frame is. Now,
  908. 33:20a frame is basically the main object
  909. 33:22that we use to hold all of our GUI
  910. 33:26information. It could be an image. It
  911. 33:29could be a text label. It could be a
  912. 33:31text box. It could be anything that we
  913. 33:33want to store inside of the frame. Frame
  914. 33:35has a lot of properties. So, let's
  915. 33:36quickly go through them. Active just
  916. 33:38determines whether the frame is
  917. 33:40clickable or not. If you hover your
  918. 33:42mouse on top of the frame, you will be
  919. 33:44able to see that the mouse is going to
  920. 33:46change to a clickable cursor. This means
  921. 33:48that you can interact with the frame.
  922. 33:50Anchor point. In order to understand
  923. 33:51that, watch my first YouTube video.
  924. 33:53Automatic size is very important to
  925. 33:55understand. If you have a text label
  926. 33:57inside of the frame and the text label
  927. 33:59is supposed to retain its size when it's
  928. 34:02changing its values. For example, if you
  929. 34:05have a text that says five and you have
  930. 34:08a frame that has been made to hold only
  931. 34:12two digits of value, if you were to
  932. 34:14change that five into a 500, since the
  933. 34:17frame is small and it's only meant to
  934. 34:19hold two digits, it will not be able to
  935. 34:22go beyond 99. So, it's going to break
  936. 34:24apart. So, what you want to do in that
  937. 34:26case is you want to turn on automatic
  938. 34:28size. This will ensure that even if the
  939. 34:31value increases, the frame size will
  940. 34:33also increase with it. When you turn on
  941. 34:35automatic size, it is also important to
  942. 34:36understand that you have to put the size
  943. 34:380 comma 0 right here so that it will
  944. 34:41only affect the size of the children
  945. 34:44that are inside of it. Background color
  946. 34:46is just the color of the frame itself.
  947. 34:48If we were to quickly unhide the frame,
  948. 34:51we can see that this is the background
  949. 34:52color. We can change the color right
  950. 34:54here. The background transparency just
  951. 34:56hides or unhides the frame and it can
  952. 34:58also make it a bit transparent. If we
  953. 35:00could put something like 0.5, we can see
  954. 35:03that it becomes semi-transparent. Next,
  955. 35:05we don't use borders. We only use UI
  956. 35:07strokes. We will get into that later.
  957. 35:08Next, we have layout order. Layout order
  958. 35:10is only used if you're using something
  959. 35:12like a UI grid layout or a UI list
  960. 35:14layout. Um, this determines in terms of
  961. 35:17a list whether this frame is going to
  962. 35:20come first, second or third or fourth or
  963. 35:22so on. It's the value that you put in
  964. 35:24order to determine its position in a
  965. 35:26list. Name is just the name of the
  966. 35:28frame. Maybe I could put something like
  967. 35:29heck for now. The parent is what it's
  968. 35:32parented to. Position and size. Please
  969. 35:34watch my first YouTube video to
  970. 35:36understand position and size in a very
  971. 35:38thorough detail. Rotation just
  972. 35:40determines whether the frame is going to
  973. 35:42be rotated at a certain angle or not.
  974. 35:44Let's quickly go and put 45. We can see
  975. 35:46that the frame rotated 45°. Visible
  976. 35:48determines whether the frame is going to
  977. 35:50be shown or not on the screen. The
  978. 35:52z-index just means whether this will
  979. 35:54show above or below other objects that
  980. 35:57are present inside of the same parent.
  981. 36:00So for example, if I was to go ahead and
  982. 36:02create other frames, uh we can quickly
  983. 36:05go ahead and change all of these
  984. 36:06background transparencies to zero and
  985. 36:09make them a bit small. We can put them
  986. 36:11in the center. Let's go ahead and move
  987. 36:13one of them to there, one of them to
  988. 36:16there. So now if we were to click on the
  989. 36:18center one and change its z-index to
  990. 36:21zero, let's color both of the other ones
  991. 36:24to something like green. As we can see,
  992. 36:27both of the other ones are above this
  993. 36:28one. And this is because the z-index of
  994. 36:30the one below is set to zero and the
  995. 36:32other ones are set to one. If you were
  996. 36:34to quickly click on the white one and
  997. 36:36change the z-index to something like
  998. 36:37two, now it shows up on top of it
  999. 36:39because it has a z-index that's higher
  1000. 36:41than the other ones. Alternatively, we
  1001. 36:43can also put values in negative. So
  1002. 36:45there we go. What clip descendants
  1003. 36:47basically does is that anything that's
  1004. 36:49inside of this frame that's extending
  1005. 36:51outside of it will not be shown. Next
  1006. 36:53up, let's go ahead and add a text label
  1007. 36:55inside of this. So what a text label
  1008. 36:56essentially does is that most of the
  1009. 36:58basic properties are just like the
  1010. 36:59frame. Please go ahead and check out the
  1011. 37:01frame section. If you would like to
  1012. 37:02learn the basic properties, let's
  1013. 37:04quickly center this. Um, a text label
  1014. 37:06has these extra options. As you can see,
  1015. 37:07there's like a panel for text. Um, you
  1016. 37:10have the option to select the font face.
  1017. 37:12We can quickly go ahead and test this
  1018. 37:14out. If we click on a font and then we
  1019. 37:16use our arrow keys to move it up and
  1020. 37:18down, we can quickly scroll through
  1021. 37:20different types of fonts. I'm going to
  1022. 37:22go for Monster Extra Bold, which is my
  1023. 37:26favorite font. Uh, style allows us to
  1024. 37:28either put bold or italic, and weight
  1025. 37:31allows us to choose the thickness of the
  1026. 37:33font. I'm going to put extra bold. Line
  1027. 37:35height is how much spacing there will be
  1028. 37:38if there are two lines of text. So for
  1029. 37:41example, if there's label and then
  1030. 37:42there's another label below it, the
  1031. 37:45spacing between both of these labels is
  1032. 37:47determined by line height. Next up, we
  1033. 37:49have rich text. So rich text basically
  1034. 37:51allows us to use formatting for the
  1035. 37:54text, maybe through scripting or maybe
  1036. 37:56even in the text itself. Let's quickly
  1037. 37:59go ahead and add something like label
  1038. 38:01label. As we can see, there's two texts.
  1039. 38:04Now, if you would like to color the
  1040. 38:06capitalized label differently, we cannot
  1041. 38:08do that without enabling rich text. If I
  1042. 38:10quickly go ahead and enable rich text
  1043. 38:12and then I come here maybe type
  1044. 38:14something like this. One color is equal
  1045. 38:16to quoted quotation marks hash ff00
  1046. 38:22and then I come here and then close it.
  1047. 38:25We can see that it changed the color of
  1048. 38:27it. Maybe I can go with something more
  1049. 38:29red.
  1050. 38:31And as you can see now it completely
  1051. 38:33changed the color even though it's the
  1052. 38:35same text label. I'm going to quickly go
  1053. 38:36ahead and disable that. As you can see,
  1054. 38:38it does not allow us to color it
  1055. 38:40anymore. Let's remove it all for now.
  1056. 38:42Um, next up, we have the option for text
  1057. 38:44color 3. This just allows us to change
  1058. 38:46the color of the text. Let's quickly go
  1059. 38:48ahead and try to color it around. And as
  1060. 38:51we can see, it is allowing us to color
  1061. 38:53it differently. Text scale just makes
  1062. 38:55sure that it doesn't read the text size
  1063. 38:57right here. But it scales the text
  1064. 38:59according to your screen size, which is
  1065. 39:01what you will always want to enable. You
  1066. 39:04will never practically have to use a
  1067. 39:06specific text size. No one uses text
  1068. 39:09stroke anymore because everybody uses US
  1069. 39:11stroke. It is the only feasible option.
  1070. 39:13We will not be using text strokes here.
  1071. 39:16Text transparency determines how
  1072. 39:18transparent the text is. We can quickly
  1073. 39:20go around and play with the numbers. And
  1074. 39:21as you can see, the transparency is
  1075. 39:22changing. In the end, we have text
  1076. 39:24wrapped. Let's quickly go ahead and add
  1077. 39:26something like label label label label.
  1078. 39:30If you were to disable this, we can see
  1079. 39:33that it only does it in one line and it
  1080. 39:35would keep going on and on and on. If we
  1081. 39:38turn on text wrap, then it will freely
  1082. 39:40adjust itself as needed on different
  1083. 39:43multiple lines. Last but not least, we
  1084. 39:44have the text alignments. Um, if we were
  1085. 39:46to change the text X alignment to left,
  1086. 39:49it would move itself to the left side,
  1087. 39:51even though the Y alignment is still
  1088. 39:53going to be in the center. If you were
  1089. 39:54to change the Y alignment to something
  1090. 39:56like bottom, we can see it comes to the
  1091. 39:58bottom. Let's change it to top and then
  1092. 40:00change the X alignment to right. Now
  1093. 40:01it's top right. So these are the
  1094. 40:03multiple properties for text label.
  1095. 40:04Let's go ahead and quickly add an image
  1096. 40:06label. Now an image label practically
  1097. 40:08functions the absolute same as a frame
  1098. 40:10apart from the fact that it has a panel
  1099. 40:12for image right here. To understand all
  1100. 40:14of the different properties, please
  1101. 40:15redirect yourself to the frame section.
  1102. 40:17Right here we have the option to put an
  1103. 40:19ID for the image. If we were to put
  1104. 40:22something like this for example that I
  1105. 40:23imported a while ago, we can see that it
  1106. 40:25updates itself to put that specific
  1107. 40:28image there. Um, we have the option to
  1108. 40:30change the image color of this specific
  1109. 40:33image. If you were to go around and play
  1110. 40:35around with the color, we can see that I
  1111. 40:36have the option to color it differently.
  1112. 40:38Image content is basically the same as
  1113. 40:40the image. This is mostly used in
  1114. 40:42scripting for multiple purposes. Image
  1115. 40:44rect offset and image rect size is very
  1116. 40:46good for flip books and sprite sheets.
  1117. 40:48We will get into that in a different
  1118. 40:49video. Image transparency just
  1119. 40:50determines how transparent an image can
  1120. 40:52be. If we go around and play with the
  1121. 40:54transparency, we can see that it becomes
  1122. 40:56very transparent. Resample mode just
  1123. 40:58determines whether the UI is going to be
  1124. 41:00a bit pixely or not. If you were to
  1125. 41:01click on pixelated, it it becomes a bit
  1126. 41:03sharp and very boxy, but that's not what
  1127. 41:06we want. Scale type is the most
  1128. 41:08important thing out of this entire
  1129. 41:09section. Scale type allows us to use
  1130. 41:11different scaling methods for our image.
  1131. 41:14If you were to go with crop, we can see
  1132. 41:16that it basically retains the size of
  1133. 41:19the image, but it will always try to
  1134. 41:21maximize itself across the size of the
  1135. 41:24frame itself. Let's change the scale
  1136. 41:25type to fit. As we can see now, it will
  1137. 41:28not try to match the size of the frame
  1138. 41:30itself, but it is going to retain the
  1139. 41:33size of the image itself. As we can see,
  1140. 41:36the proportions aren't messing up, but
  1141. 41:38it's not cropping itself. And this is
  1142. 41:40very ideal when importing UI. So please
  1143. 41:43make sure to use this a lot. Stretch is
  1144. 41:44the basic property. Stretch just does it
  1145. 41:46so that the entire image will get
  1146. 41:48stretched according to whatever pixels
  1147. 41:51you put inside of the image property. In
  1148. 41:54tile scale type, you can just duplicate
  1149. 41:56the same image multiple times. This is
  1150. 41:58very good if you are making a loading
  1151. 41:59screen or something similar like that.
  1152. 42:01Let's quickly go ahead and put something
  1153. 42:02like 0.5. As you can see, it quickly
  1154. 42:05divided itself across the entire frame.
  1155. 42:08If you were to go around and move it,
  1156. 42:09it's going to keep itself divided, but
  1157. 42:11it is still going to move around and
  1158. 42:14scale with the actual size of the image
  1159. 42:16label. So, the next thing that we have
  1160. 42:17is text box. It basically functions as a
  1161. 42:20frame and a text label with some added
  1162. 42:22[music] special properties. Um, if you
  1163. 42:24would like some basic insight in this,
  1164. 42:26please go ahead and check out the frame
  1165. 42:27and text label sections. This is
  1166. 42:29basically a text label which you can
  1167. 42:31click and type in. So, as you can see, I
  1168. 42:33clicked on it. It's instantly hid inside
  1169. 42:36of it. And now I can type whatever I
  1170. 42:37want and then press enter. The first
  1171. 42:39property that we have that's unique here
  1172. 42:40is clear text on focus. If you have this
  1173. 42:42selected, what it will do is that if you
  1174. 42:44click on the box, it's going to hide the
  1175. 42:46text that already exists. If you were to
  1176. 42:49unselect this and then we were to type
  1177. 42:51something, as you can see, it doesn't
  1178. 42:53instantly delete that. Multi-line allows
  1179. 42:55you to type text that's going to
  1180. 42:58separate itself into multiple lines. You
  1181. 43:00can press enter while typing to make a
  1182. 43:03new line. To understand position and
  1183. 43:05size, please go ahead and check out my
  1184. 43:06first YouTube video. Rotation just
  1185. 43:08allows you to change the rotation of the
  1186. 43:10text box. Something like this would put
  1187. 43:12it on a diagonal. Text enabled is just a
  1188. 43:14solid protocol. If it's enabled, then
  1189. 43:16you can edit whatever is written inside
  1190. 43:18here. If it's not enabled, that you will
  1191. 43:20not be able to write anything yourself.
  1192. 43:22And then we have the text panel here.
  1193. 43:24It's basically the same thing apart from
  1194. 43:26the placeholder thing that we have right
  1195. 43:28here. Um, placeholder text just means
  1196. 43:30what's going to be written before you
  1197. 43:31click on it. If I was to go ahead and
  1198. 43:33write something like search and then
  1199. 43:36remove the text right here, as you can
  1200. 43:37see, the search shows up right there. I
  1201. 43:40can also make it a bit darker depending
  1202. 43:41on what I want. So something like this
  1203. 43:43could work. Moving on to a text button.
  1204. 43:45A text button functions the same way as
  1205. 43:48a frame would. If you would like, please
  1206. 43:49go ahead and check out the section on
  1207. 43:50frame and text label to understand more
  1208. 43:52about the text button basic properties.
  1209. 43:54The unique properties we'll be going
  1210. 43:56over. So the first one is auto button
  1211. 43:57color. If you were to hover over a text
  1212. 44:00button or an image button in Roblox,
  1213. 44:02what it normally does by default is that
  1214. 44:04it's going to add a little black
  1215. 44:06transparent frame on top of it. It's
  1216. 44:08going to make it look like you're
  1217. 44:09hovering over it. By unselecting or
  1218. 44:11deselecting this option, you will remove
  1219. 44:13that feature from Roblox. Next up, we
  1220. 44:15have the haptic effects. This is very
  1221. 44:17good for Roblox's in-built hovering and
  1222. 44:20clicking effects. Basically, if you
  1223. 44:22hover over, it resizes and if you click,
  1224. 44:24it does like a little bounce effect.
  1225. 44:27This is what Roblox offers, but you can
  1226. 44:29also script it manually if you would
  1227. 44:30like to. The rest is pretty much the
  1228. 44:32same. The only difference is that text
  1229. 44:34button is a button that you can click
  1230. 44:36and it can be told to do a certain
  1231. 44:38action while a normal frame cannot.
  1232. 44:40Moving on to image buttons. Image
  1233. 44:42buttons functions the absolute same as a
  1234. 44:44frame or a text button would. If you
  1235. 44:46would like, please go ahead and check
  1236. 44:47those sections out. The unique property
  1237. 44:49in an image button is the fact that we
  1238. 44:51have these two options here. Hover
  1239. 44:53haptic effect and press haptic effect.
  1240. 44:55If you were hovering over it or clicking
  1241. 44:56it, it would have like a little bounce
  1242. 44:58effect or a resizing effect. That's
  1243. 45:00what's unique to buttons in Roblox.
  1244. 45:02Apart from that, we have this auto
  1245. 45:03button color right here. If you were
  1246. 45:05hovering over the image button, Roblox
  1247. 45:07normally makes the button darker to show
  1248. 45:10that you're hovering over it, but you
  1249. 45:12can turn this property off if you would
  1250. 45:13like to. Next up, we have these two
  1251. 45:15properties right here. Hover image and
  1252. 45:17hover image content and pressed image
  1253. 45:18and pressed image content. If you are
  1254. 45:20hovering over the image, you have the
  1255. 45:22ability to change the image ID. And if
  1256. 45:24you click on the image, then you also
  1257. 45:26have the ability to change what the
  1258. 45:28image looks like after it has been
  1259. 45:29clicked. Next up, we have a canvas
  1260. 45:31group. A canvas group is basically the
  1261. 45:33same as a frame. The only difference is
  1262. 45:35that canvas groups collide with quality
  1263. 45:37a bit. They are going to ruin the
  1264. 45:39functionality of your game. Because
  1265. 45:40canvas groups take up a lot of
  1266. 45:42resources, they do stuff that normal
  1267. 45:44frames cannot, and hence they eat up the
  1268. 45:45resources a bit more than a frame would.
  1269. 45:47Canvas groups can be useful for one
  1270. 45:49thing. It is for rounded corners not
  1271. 45:51being clipped by the frame, which is a
  1272. 45:53very common problem in Roblox Studio. As
  1273. 45:55you can see, a canvas group clips out
  1274. 45:57the corners of a rounded frame. But a
  1275. 46:00frame, normal frame cannot do that. This
  1276. 46:03problem becomes very annoying when you
  1277. 46:04are making a health bar or you're making
  1278. 46:06a shop GUI or any GUI that uses rounded
  1279. 46:08corners and you cannot get the entire
  1280. 46:10thing to work. Um, if you have 50 frames
  1281. 46:12inside of this canvas group and you
  1282. 46:15change a value here, it would
  1283. 46:17consecutively apply the same
  1284. 46:18transparency to all those 50 frames,
  1285. 46:20which eats up a ton of resources. That's
  1286. 46:22why it's not recommended to use canvas
  1287. 46:24groups inside of your game. Next up, we
  1288. 46:26have a viewport frame. What a viewport
  1289. 46:27frame basically does is that it allows
  1290. 46:30you to view something, as the name
  1291. 46:32suggests, in a 3D setting inside of your
  1292. 46:34game. If you, for example, have a
  1293. 46:36character that you want to show inside
  1294. 46:38of your viewport frame, that can easily
  1295. 46:39be done. Let's quickly go ahead and do
  1296. 46:41something similar. I'm going to insert a
  1297. 46:43rig of my character in workspace. As you
  1298. 46:46can see, I'm done with that. I used a
  1299. 46:47plugin called load character by already
  1300. 46:50pro. Uh next up, what I'm going to do is
  1301. 46:52that I am going to create a camera angle
  1302. 46:54somewhere here, which I like. And then
  1303. 46:58I'm going to go to the camera and then
  1304. 47:00I'm going to duplicate the camera right
  1305. 47:02there. I'm going to call it second
  1306. 47:04camera.
  1307. 47:06And then I'm going to hold control and
  1308. 47:07select both of these and I'm going to
  1309. 47:09put it inside of the viewport frame.
  1310. 47:12Then what I'm going to do is that I'm
  1311. 47:14going to click on the viewport frame and
  1312. 47:16I'm going to change current camera to
  1313. 47:18second camera. As we can see the
  1314. 47:20character has now popped up. It is that
  1315. 47:21simple. And we can move the character
  1316. 47:24around using the rotate button right
  1317. 47:27here.
  1318. 47:29And as you can see it is moving in the
  1319. 47:31viewport frame actively. And this is
  1320. 47:33very useful for showing characters and
  1321. 47:35showcasing UIs. Let's quickly go ahead
  1322. 47:37and hide the background of the viewer
  1323. 47:39frame. You can see that there's an
  1324. 47:41annoying outline that has popped up
  1325. 47:42around the character. This is a very
  1326. 47:44common mistake beginners do. They don't
  1327. 47:45know how to fix this outline. In order
  1328. 47:47to fix the outline, there are a number
  1329. 47:48of steps. The easiest one that I'm going
  1330. 47:50to be showing is just by changing the
  1331. 47:52background color to something like 100.
  1332. 47:54When you do this, the outline basically
  1333. 47:57gets a very grayish color and it will
  1334. 47:59not show that outline anymore. This is
  1335. 48:02the most easy to do and feasible method
  1336. 48:04to remove the outline. Moving on, we
  1337. 48:07have a lot of other options. We have the
  1338. 48:08ambient and light color. This is
  1339. 48:10basically the lighting for the 3D
  1340. 48:12objects inside of your viewport frame.
  1341. 48:14If you have built on Roblox before or
  1342. 48:16modeled even, you would probably know
  1343. 48:18something about lighting. And this is
  1344. 48:19where you apply that. For all the basic
  1345. 48:21properties, please go ahead and check
  1346. 48:22out frame sections or other sections.
  1347. 48:24Then you guys must have noticed that we
  1348. 48:26also have an option for image right
  1349. 48:28here. Um this is just to change the
  1350. 48:29overall hue of whatever is present
  1351. 48:31inside the viewport frame. You can
  1352. 48:33quickly come here and change it like
  1353. 48:34this. And you can also change the image
  1354. 48:36transparency to something like this.
  1355. 48:38This is essentially a background
  1356. 48:40transparency but also keeping in mind
  1357. 48:43the character or the render that's part
  1358. 48:45of your viewport frame. Everything else
  1359. 48:46is pretty much the same. So yeah, so a
  1360. 48:48scrolling frame is basically a frame
  1361. 48:50that can be scrolled as the name
  1362. 48:53suggests. It's very simple. We're going
  1363. 48:54to remove the background and then we are
  1364. 48:56going to reduce the size a bit.
  1365. 48:58Maybe something like that works. As you
  1366. 49:00can see, it can be moved up and down.
  1367. 49:03Let's click on the scrolling frame and
  1368. 49:04understand some things. The entire
  1369. 49:06scrolling frame just functions like a
  1370. 49:07normal frame. Please go and check out
  1371. 49:09the section on frames a detailed
  1372. 49:10explanation on the basics. Let's scroll
  1373. 49:13down. And now the unique elements that
  1374. 49:14we have are the scrolling properties. Um
  1375. 49:17the entire scrolling properties has some
  1376. 49:19very unique stuff. So please bear with
  1377. 49:20me and watch this entire section
  1378. 49:22thoroughly. First we have the automatic
  1379. 49:24canvas size. Um the entire uh scrolling
  1380. 49:27space inside of the scrolling frame is
  1381. 49:29called a canvas. The canvas size can be
  1382. 49:31a preset value. You can put it hardcoded
  1383. 49:34or you can also scale it with how many
  1384. 49:37objects are present inside of it. Let's
  1385. 49:39say you have five different objects and
  1386. 49:40you want the scrolling to stop when the
  1387. 49:42fifth object ends. That's when you will
  1388. 49:44have to turn it on. Next up we have
  1389. 49:46bottom image. So a scrolling bar is made
  1390. 49:49up of three images. The bottom one is
  1391. 49:51the bottom image. The middle one is
  1392. 49:54right here. mid image and the top one is
  1393. 49:56called top image. If you were to quickly
  1394. 49:58go ahead and remove the mid image, we
  1395. 50:00can see the top and bottom ones are
  1396. 50:01still there, but the mid one isn't.
  1397. 50:02Let's control Z that. Let's remove the
  1398. 50:04bottom one and then let's remove the top
  1399. 50:07one. As you can see, it has become a
  1400. 50:09very sharp rectangle. Next up, we have
  1401. 50:11canvas position. The canvas position is
  1402. 50:13basically what's inside of the box. We
  1403. 50:15can move it left, right, up, and down uh
  1404. 50:18depending on what we need, but no one
  1405. 50:20ever really uses that. It's not a very
  1406. 50:22feasible option to be using. Next up, we
  1407. 50:24have canvas size. This is what we were
  1408. 50:25talking about initially. Um, this is
  1409. 50:27what determines how expansive the size
  1410. 50:30of the canvas is inside of the box. Um,
  1411. 50:33if we want to automatically size our
  1412. 50:36canvas, we are always going to put the
  1413. 50:37canvas size as zero so that it can only
  1414. 50:40scale in respect to what's present
  1415. 50:41inside of the box and not add any
  1416. 50:44additional size on top of it. So, this
  1417. 50:47is going to change to zero if we were to
  1418. 50:48ever do that. and then change the
  1419. 50:50automatic canvas size to something like
  1420. 50:51X, X, Y or Y. Next up, we have scroll
  1421. 50:54bar image color. This changes the image
  1422. 50:56color for all the three different images
  1423. 50:58that we have for the scrolling frame. If
  1424. 50:59you were to quickly go ahead and change
  1425. 51:01this to something like white, we can see
  1426. 51:03that it goes to this color here.
  1427. 51:05Unfortunately, the scrolling bar is
  1428. 51:07always going to be at a bit of a
  1429. 51:09transparency. It's not going to become
  1430. 51:10fully opaque. This is because the image
  1431. 51:12that is being used for the scrolling bar
  1432. 51:14was not imported by the devs themselves
  1433. 51:16on full opacity. So, we have to struggle
  1434. 51:18with this unless you want to import your
  1435. 51:20own scrolling image. Next up, we have
  1436. 51:22the scrolling bar thickness. This
  1437. 51:23stretches the scrolling bar. Let's go
  1438. 51:25with something like 30. As you can see,
  1439. 51:26it becomes very huge. If you were to go
  1440. 51:28with something like five, it becomes
  1441. 51:30very thin. And then we have scrolling
  1442. 51:32direction. What scrolling direction does
  1443. 51:34is that it will allow you to either
  1444. 51:35scroll left to right, up and down, or
  1445. 51:38everywhere. So, a very good example of a
  1446. 51:41scrolling direction on Xaxis would be
  1447. 51:44something like a battle pass. If you
  1448. 51:45were to scroll left to right, you would
  1449. 51:47be able to see 1, 10, 20, 30, 40, and so
  1450. 51:50on. A good example of a Y scrolling
  1451. 51:52direction would be a shop GUI. You can
  1452. 51:54just scroll down and you can buy
  1453. 51:55whatever you want. And an XY would be
  1454. 51:58something like a skill tree in RPG
  1455. 51:59games. You can unlock the first section,
  1456. 52:02and then you can go here to unlock some
  1457. 52:03healing abilities, and then you can go
  1458. 52:05here to unlock some fighting abilities
  1459. 52:06and whatnot. Scrolling enabled just
  1460. 52:08chooses whether you can scroll down or
  1461. 52:10not. Last but not least, we have the
  1462. 52:11vertical scroll bar position. We can
  1463. 52:13change the scroll bar on the left or
  1464. 52:15right side depending on what we want.
  1465. 52:17Next up, I'm going to go ahead and show
  1466. 52:18you guys how automatic canvas sizing is
  1467. 52:20done. Let's quickly go ahead and add a
  1468. 52:21UI list layout. Um, in a UI list layout,
  1469. 52:24if you were to quickly go ahead and add
  1470. 52:25some frames, maybe duplicate them like
  1471. 52:27this. Now, we have some frames that go
  1472. 52:30all the way here. We don't want the
  1473. 52:32frame to go beyond that. So, what we are
  1474. 52:33going to do in this scenario, we are
  1475. 52:35going to change the automatic canvas
  1476. 52:37size to Y and then we are going to
  1477. 52:39change the canvas size to zero itself.
  1478. 52:42Now, if you were to scroll down, we can
  1479. 52:43see that it does not go beyond that. So,
  1480. 52:45next up, what we're going to be looking
  1481. 52:46at is UI properties for any single GUI
  1482. 52:49object. Let's quickly go ahead and add a
  1483. 52:51frame. We're going to position the frame
  1484. 52:53in the center and maybe increase the
  1485. 52:55size a bit. Now, let's quickly go ahead
  1486. 52:58and add a UI corner to this frame. We're
  1487. 53:00going to search UI corner. As you can
  1488. 53:02see, we added a UI corner. Um, UI corner
  1489. 53:05is basically a property or a extra GUI
  1490. 53:09object that you can insert underneath
  1491. 53:10your main GUI object which rounds the
  1492. 53:13corners of that specific object. For
  1493. 53:16example, if we were to go ahead and put
  1494. 53:18something like 0.2, change this back to
  1495. 53:20zero, you can see that it would round it
  1496. 53:22and then we can go something as big as
  1497. 53:240.5. Um, 0.5 and 0.6 and onwards
  1498. 53:28basically function the same. Some people
  1499. 53:30like going ahead and putting two. Um,
  1500. 53:32you can also put 0.5 or you could also
  1501. 53:34put one. It doesn't really change much.
  1502. 53:37Um, as you can see, if I was to make it
  1503. 53:38this big and then put something like
  1504. 53:400.5, it would still be the same. So, if
  1505. 53:42I put something like two or sorry, 2.0
  1506. 53:45in order to keep it scaled, it still
  1507. 53:46functions the same way. So, next up,
  1508. 53:48what we're going to do is we are going
  1509. 53:49to go ahead and add a UI stroke. UI
  1510. 53:51stroke is basically a property or a
  1511. 53:54descendant that allows you to add a
  1512. 53:56stroke or an outline around the GUI
  1513. 53:58object that it is a child of. If we were
  1514. 54:00to go ahead and quickly increase the
  1515. 54:01thickness to something like three, we
  1516. 54:03can see it appear. We have like a
  1517. 54:05thickness around the main frame. Now, um
  1518. 54:08we have a lot of options for this. We
  1519. 54:10have the apply stroke mode to contextual
  1520. 54:12and border. Um this is going to become
  1521. 54:14more easy to understand. If I was to
  1522. 54:16quickly go ahead and add a text label.
  1523. 54:18Now, if I was to quickly go ahead and
  1524. 54:19put this UI stroke inside the text
  1525. 54:21label, you can see if it's contextual,
  1526. 54:23it is going to be adding the stroke to
  1527. 54:25the text. If I was to quickly change the
  1528. 54:26outline to white, as you can see, it's
  1529. 54:28adding it to the text. But if I was to
  1530. 54:30change the mode to border, it adds it to
  1531. 54:33the frame itself. So contextual is
  1532. 54:35whatever is inside of that uh GUI object
  1533. 54:39in terms of context and border means the
  1534. 54:41absolute boundaries of that GUI object.
  1535. 54:44We're not going to go to border because
  1536. 54:45it's rarely ever used. So we have some
  1537. 54:47basic options like border, stroke
  1538. 54:49position. Uh this can be changed to make
  1539. 54:51the stroke either appear inside the
  1540. 54:53frame or outside of it or maybe even on
  1541. 54:56the absolute edge so that it overlaps
  1542. 54:58both the inside and the outside part. As
  1543. 55:00we can see center would be something
  1544. 55:02like that and inner would be only inside
  1545. 55:04of it. So this is pretty useful. Uh most
  1546. 55:07people now have started using center
  1547. 55:09ever since Roblox has pushed this new
  1548. 55:10update. But I would still use outer for
  1549. 55:13most of the stuff that I'm doing for
  1550. 55:14absolutely proper uh alignments and
  1551. 55:17whatnot. Next up we have UI strokes. Um
  1552. 55:20we can change the US stroke to become
  1553. 55:22white. We can change the color around.
  1554. 55:24This is pretty nice for some glowing
  1555. 55:26parts in your game. Uh apart from that
  1556. 55:28we have line join mode. This is this can
  1557. 55:30be either bevel, miter or round. Round
  1558. 55:33makes it so that it's soft even if you
  1559. 55:35increase the thickness. Let's go with
  1560. 55:36something like 50. As you can see the
  1561. 55:38edges are round. If I was to change it
  1562. 55:40to something like bevel, it makes it
  1563. 55:42very sharp and it also divides the ends.
  1564. 55:45It does not keep them absolutely sharp.
  1565. 55:48However, what miter does is that it is
  1566. 55:50going to keep them very sharp. It is not
  1567. 55:52going to lose its absolute proportions
  1568. 55:54no matter how big it becomes. So, round
  1569. 55:56US stroke is easier on the eyes. So, we
  1570. 55:58stick with round. Then we have the
  1571. 55:59stroke sizing mode. This is a new update
  1572. 56:00by Roblox. Fixed size is basically a
  1573. 56:03thickness in pixels. And then the scale
  1574. 56:06size is how well it's going to scale in
  1575. 56:09terms of scaled values. Um, if you were
  1576. 56:11to go ahead and put something like 0.05
  1577. 56:1305 or 0.1 maybe. As you can see, now it
  1578. 56:16is going to scale with the screen size.
  1579. 56:18And then we have the basic properties
  1580. 56:20like thickness. Thickness is just how
  1581. 56:22thick the UI stroke is going to be.
  1582. 56:23Transparency can be fiddled around with.
  1583. 56:25Now Z-index is something nice. Um, if
  1584. 56:27you have more than one UI stroke, let's
  1585. 56:29go ahead and quickly add another UI
  1586. 56:31stroke. And then we are going to change
  1587. 56:33the Z-index of this UI stroke to zero.
  1588. 56:35Let's increase the thickness to 0.2. And
  1589. 56:38change the color of this UI stroke to
  1590. 56:40white. As you can see, we now have two
  1591. 56:41UI strokes on the same frame. And the
  1592. 56:43second one is below the first one. So
  1593. 56:45then we can use two in the same way. We
  1594. 56:47can also use multiple. Let's quickly go
  1595. 56:50ahead and change this to 0.4. Uh change
  1596. 56:52this one to 0.3. Put this one as minus
  1597. 56:55one. And then put this one as minus2. Uh
  1598. 56:59sorry, change the color. This one is
  1599. 57:01going to become black. And this one is
  1600. 57:02going to become white. As we can see,
  1601. 57:04now we have two extra UI strokes. And it
  1602. 57:07works perfectly. Next thing that we have
  1603. 57:08is UI padding. I quickly gone ahead and
  1604. 57:10made like a little hierarchy. What UI
  1605. 57:12padding basically does is that it adds a
  1606. 57:14little breathing room in your UI. Let's
  1607. 57:16quickly go ahead and add a UI padding.
  1608. 57:18And now let's quickly put a value like
  1609. 57:210.05. As you can see, padding bottom
  1610. 57:23means that we have added some breathing
  1611. 57:25room in the bottom side. Let's quickly
  1612. 57:27go ahead and add it to the top as well.
  1613. 57:28Now we have space on both the upside and
  1614. 57:31the downside. It is completely scaling
  1615. 57:33the UI's positions with regards to the
  1616. 57:36UI padding. If we delete that, we can
  1617. 57:38see that they return to their original
  1618. 57:39size. So, if you um lay out your UIs
  1619. 57:43perfectly, you will never have to use UI
  1620. 57:45padding. I also am not a personal fan of
  1621. 57:47UI padding because it can cause problems
  1622. 57:49with animations and whatnot, causing
  1623. 57:51stuffs to not work the way that it's
  1624. 57:53intended to. So, maybe you're better off
  1625. 57:55not using UI padding and just laying out
  1626. 57:57your UIs in a perfect manner. After
  1627. 57:59that, we have a property called UI
  1628. 58:01scale. It is very useful for animation
  1629. 58:03such as hovering and resizing and then
  1630. 58:06um clicking for a little bounce effect.
  1631. 58:08If you were to quickly go to this frame,
  1632. 58:10we added a UI scale to it. Let's change
  1633. 58:12this to something like 1.5. As we can
  1634. 58:14see, it became very big. Uh the reason
  1635. 58:17why it did not increase on this axis is
  1636. 58:19because the anchor point is set to here.
  1637. 58:21Let's quickly go ahead and put the
  1638. 58:22anchor point in the center. Now, if we
  1639. 58:24were to change the scale, it would
  1640. 58:26change in the center. As we can see, now
  1641. 58:28it is changing in the [music] center.
  1642. 58:29Let's quickly go ahead and put something
  1643. 58:31like 0.5. And now it's resizing in the
  1644. 58:33absolute center. Something like two
  1645. 58:35would resize it there as well. So next
  1646. 58:37up is UI aspect ratio constraint. What
  1647. 58:39it basically does is that it's going to
  1648. 58:40retain the proportions of the GUI object
  1649. 58:43that it is a child of if it's browsed on
  1650. 58:46different devices. It is going to keep
  1651. 58:47that specific proportion that it was
  1652. 58:49meant to have. If you were to quickly,
  1653. 58:51for example, see this UI and change it
  1654. 58:53to something like VGA, we can see that
  1655. 58:55it stretches on the vertical axis. We
  1656. 58:58don't want that happening. Let's go back
  1657. 58:59to HD 1080p and then add a UI aspect
  1658. 59:02ratio constraint to this. Um, this would
  1659. 59:04cause problems adding it manually. So,
  1660. 59:06let's quickly just go ahead and add it
  1661. 59:08with my plug-in. Uh, now we have the UI
  1662. 59:10aspect ratio constraint that has a very
  1663. 59:12fixed aspect ratio right here. Um, let's
  1664. 59:15go and check it with the VGA device.
  1665. 59:17Now, as we can see, it is not causing
  1666. 59:20any stretching problems. And this is
  1667. 59:21because we now have a constraint on its
  1668. 59:23aspect ratio. As we can see, the aspect
  1669. 59:25ratio for this is 1.935. You guys can
  1670. 59:28understand what an aspect ratio is by
  1671. 59:30using certain mathematical values to
  1672. 59:32divide the aspect ratios. For example,
  1673. 59:35uh if your screen is 16 ratio 9, you can
  1674. 59:39divide 16 by 9. And the result would be
  1675. 59:41your absolute aspect ratio. And next up,
  1676. 59:44we have a UI gradient. So what a UI
  1677. 59:46gradient does is let's go to this frame
  1678. 59:48in the center and add a UI gradient to
  1679. 59:50it. A UI gradient is basically a color
  1680. 59:54scheme that you can apply to a frame.
  1681. 59:56It's a gradient of two different colors
  1682. 59:58or maybe more than two colors depending
  1683. 1:00:00on what you're going for. Let's quickly
  1684. 1:00:02go ahead and see the properties of a UI
  1685. 1:00:05gradient. We have appearance right here.
  1686. 1:00:07And then we have color. This looks like
  1687. 1:00:09one color, but if you were to click on
  1688. 1:00:11it, you can see that these three buttons
  1689. 1:00:12pop up. You can click on these and now
  1690. 1:00:14you will have this little interface pop
  1691. 1:00:16up. If you click on this button right
  1692. 1:00:19here or this little sequence right here,
  1693. 1:00:21you can select the color of it and then
  1694. 1:00:23you can change it to something like
  1695. 1:00:24green. Uh if you select the other one
  1696. 1:00:27and then you were to change the color of
  1697. 1:00:29that one, you can select something like
  1698. 1:00:31red for example. In the center, you can
  1699. 1:00:33create another point by selecting
  1700. 1:00:35anywhere on this entire slider. Let's go
  1701. 1:00:38ahead and put it there. And then change
  1702. 1:00:39it to 0.5 because we want it in the
  1703. 1:00:41absolute center. Change the color to
  1704. 1:00:43something like pink.
  1705. 1:00:46And there we have it. We have a nice
  1706. 1:00:49little gradient right here. We're going
  1707. 1:00:50to close this. Um we have a lot of
  1708. 1:00:53options now. We can change the offset.
  1709. 1:00:54This is good for like replicating a
  1710. 1:00:56shine effect on a UI. Let's quickly go
  1711. 1:00:58ahead and change this to, for example,
  1712. 1:01:000.1. And you can see how it would get
  1713. 1:01:02animated from one point to the other. It
  1714. 1:01:04would move like 0.1, 0.2 quickly. It's
  1715. 1:01:07going to become like 0.3, 0.4, all the
  1716. 1:01:10way until it goes out of the screen and
  1717. 1:01:12then comes back in a small little loop.
  1718. 1:01:14Next up, we have rotation. We can change
  1719. 1:01:16the rotation of the UI gradient. We
  1720. 1:01:18could put it 90, we could put it 45, we
  1721. 1:01:21could put it 135. We have a lot of
  1722. 1:01:23options there. And lastly, we have the
  1723. 1:01:25option to change the transparency. Do
  1724. 1:01:27note this does not only remove the
  1725. 1:01:29color, but it will also remove the
  1726. 1:01:31transparency of the frame that it is a
  1727. 1:01:34child of. If we were to go ahead and add
  1728. 1:01:36a transparency here, we can see that
  1729. 1:01:38it's also hiding the frame itself. This
  1730. 1:01:40is an intended feature and there are
  1731. 1:01:42ways to bypass this, but this is rarely
  1732. 1:01:44ever bypassed because transparency is a
  1733. 1:01:47very good feature to have and people
  1734. 1:01:48love it. So, we can also quickly go
  1735. 1:01:50ahead and do a lot of things with it.
  1736. 1:01:51Um, we have these basic properties right
  1737. 1:01:54here. Something like this. And lowering
  1738. 1:01:57these sliders around. You won't ever
  1739. 1:01:59have to get into anything else just for
  1740. 1:02:00UI. So, you don't have to worry about
  1741. 1:02:02that. Now, let's move on and understand
  1742. 1:02:04layouts. The first layout that we have
  1743. 1:02:05is a UI list layout. Let's quickly go
  1744. 1:02:07ahead and add a UI list layout inside of
  1745. 1:02:09this. So, as we can see now, it has
  1746. 1:02:12automatically moved all of the frames
  1747. 1:02:14into one specific sequence. Whenever we
  1748. 1:02:17add a layout, we lose the ability to
  1749. 1:02:18control the positions of the GUI objects
  1750. 1:02:21that the layout is affecting. One way to
  1751. 1:02:23bypass that is by making placeholder
  1752. 1:02:25frames that are affected by the position
  1753. 1:02:27of the list layout and then moving the
  1754. 1:02:29positions of the content inside of those
  1755. 1:02:32placeholder frames so that you can still
  1756. 1:02:34have flexibility and maybe animate your
  1757. 1:02:36layouts. Apart from that, let's look at
  1758. 1:02:38the properties of the list layout. We
  1759. 1:02:39have appearance right here. This is
  1760. 1:02:41basic padding. Um, if you were to go
  1761. 1:02:43ahead and change it to something like
  1762. 1:02:440.05, 05. We can see that it creates
  1763. 1:02:47space between all of them. Uh the second
  1764. 1:02:49one is just offset. So we're not going
  1765. 1:02:50to ignore that. Let's keep it at 0.01
  1766. 1:02:53perhaps for now. Next up, we have the
  1767. 1:02:55fill direction. The fill direction just
  1768. 1:02:57basically insinuates whether you're
  1769. 1:02:59going to list the GUI objects that are
  1770. 1:03:01being influenced in a vertical or
  1771. 1:03:03horizontal manner. If I was to change to
  1772. 1:03:04horizontal, we can see that it changes
  1773. 1:03:06to [music] the X-axis instead of the
  1774. 1:03:08Y-axis. Sort order determines what frame
  1775. 1:03:10is going to come first or what GUI
  1776. 1:03:13object that it's influencing is going to
  1777. 1:03:15come first. Um, if we have the layout
  1778. 1:03:17order selected, you can go to the frame
  1779. 1:03:19and you can see as we mentioned in the
  1780. 1:03:21frame section of this video that we have
  1781. 1:03:23a layout order right here. Um, we can
  1782. 1:03:25either lay out the list in terms of a
  1783. 1:03:28layout order. So, for example, if I
  1784. 1:03:30change the color of this to green,
  1785. 1:03:33change the layout order of this to one,
  1786. 1:03:34it's going to pop up at the end. And
  1787. 1:03:36this is because all of these are set to
  1788. 1:03:38zero. So it's just going to randomize
  1789. 1:03:40all four of these and put this one at
  1790. 1:03:42the end of it. If I was to change the
  1791. 1:03:44color of this to red, for example, and
  1792. 1:03:46put it at, [music]
  1793. 1:03:48let's say, layout order 2, it's going to
  1794. 1:03:49add it at the end. So it's like 0 0 1 2.
  1795. 1:03:52And if I was to change the sort order to
  1796. 1:03:55name, now it's just going to base it off
  1797. 1:03:58of names. So A is going to come first
  1798. 1:04:00and Z is going to come in the end. Let's
  1799. 1:04:02see the green one. Let's quickly change
  1800. 1:04:04this to something like since all of the
  1801. 1:04:06other frames are called F and F comes
  1802. 1:04:08before let's say G, let's call this
  1803. 1:04:11Graeme as a joke. As you can see the F
  1804. 1:04:13are all in the start and G is at the
  1805. 1:04:16[music] end. If we were to call this
  1806. 1:04:17something like Zim, this is going to end
  1807. 1:04:20up at the end as well. Next up, we have
  1808. 1:04:22something simple like wraps. What wraps
  1809. 1:04:24does is that it's going to make sure
  1810. 1:04:26that every single GUI object being
  1811. 1:04:28influenced by the list layout is not
  1812. 1:04:29going to go outside of the borders of
  1813. 1:04:32its parent. For example, if we made the
  1814. 1:04:35size of all of these frames a bit
  1815. 1:04:37bigger, as you can see, it is now going
  1816. 1:04:39outside of the main frame. If we turn on
  1817. 1:04:41wraps, it would make sure that it will
  1818. 1:04:43not go outside no matter what. Even if
  1819. 1:04:45we were to make more of these, you can
  1820. 1:04:46see that it is all going to stay inside
  1821. 1:04:48of it. Uh we can also go ahead and turn
  1822. 1:04:50on clip descendants. And you can see how
  1823. 1:04:52it all functions together. Let's quickly
  1824. 1:04:54go ahead and duplicate more. It tried to
  1825. 1:04:56go outside of it, but since clip
  1826. 1:04:58descendants was enabled, it won't let it
  1827. 1:05:00show anything outside of it. And then
  1828. 1:05:02you can use a scrolling frame. And
  1829. 1:05:04that's how you make an inventory. Last
  1830. 1:05:05but not least, you have the alignments
  1831. 1:05:07right here. Horizontal alignment just
  1832. 1:05:08means where the GUI objects are going to
  1833. 1:05:10show up in terms of X-axis. Are they
  1834. 1:05:13going to show up in the left or the
  1835. 1:05:14center or the right? Um, the vertical
  1836. 1:05:17alignment just means whether they're
  1837. 1:05:18going to show up at top, center, or
  1838. 1:05:20bottom. Let's go with bottom. It's going
  1839. 1:05:21to show up right there. So, lastly, we
  1840. 1:05:23have the vertical flex and the
  1841. 1:05:24horizontal flex. Let's quickly go ahead
  1842. 1:05:26and see what that does. It just
  1843. 1:05:27basically makes sure that all of the GUI
  1844. 1:05:30objects inside of the main frame are
  1845. 1:05:32going to um sort of flex into the
  1846. 1:05:35extreme ends of the main parent frame.
  1847. 1:05:37So, if we were to quickly go ahead and
  1848. 1:05:39put this on fill, for example, you can
  1849. 1:05:40see that the horizontal space completely
  1850. 1:05:43gets covered. Um, if we were also going
  1851. 1:05:45to put this back to none and then put it
  1852. 1:05:48vertical flex at fill, we can see that
  1853. 1:05:50it completely stretches on the vertical
  1854. 1:05:52axis. This is honestly rarely ever used.
  1855. 1:05:55If you scale out your UIs properly, you
  1856. 1:05:57will never have to use this. So, you
  1857. 1:05:59don't have to worry about this stuff.
  1858. 1:06:00Anyways, let's quickly go back to none.
  1859. 1:06:02And yeah, next up, we have a UI grid
  1860. 1:06:04layout. This is largely the same as UI
  1861. 1:06:05list layout except that it also allows
  1862. 1:06:08you to put the sizing of each cell
  1863. 1:06:10inside the layout. It is good and bad in
  1864. 1:06:13some terms compared to UIL layout. There
  1865. 1:06:16are some pros and cons. UI grid layouts
  1866. 1:06:18are generally harder to manage and they
  1867. 1:06:19are also harder to animate. However,
  1868. 1:06:21they offer more uh flexibility since you
  1869. 1:06:24can just change the sizing of all of the
  1870. 1:06:26cells inside of the UI grid layout
  1871. 1:06:27without having to manually change the
  1872. 1:06:29sizes of all the GUI objects that are
  1873. 1:06:31present inside that layout. So, let's
  1874. 1:06:33quickly go ahead and try changing the
  1875. 1:06:35frame size. As we can see, there's a
  1876. 1:06:37exclamation mark here. You couldn't
  1877. 1:06:38change it even if you wanted to. I can
  1878. 1:06:40try dragging it around, but nothing
  1879. 1:06:41happens. Um, we're going to come back to
  1880. 1:06:43the UI grid layout and try changing this
  1881. 1:06:45to something like 140, 180 maybe. And
  1882. 1:06:48you can see that it changes pretty
  1883. 1:06:50nicely. Next up, we have the cell
  1884. 1:06:52padding. We can just change this. Uh,
  1885. 1:06:54unlike Bliss layout, you can also change
  1886. 1:06:56the padding on the Y-axis, not only the
  1887. 1:06:58X-axis or not only in one direction, but
  1888. 1:07:01both directions. So if we were to
  1889. 1:07:03quickly go ahead and make five more
  1890. 1:07:04frames, we can change the padding not
  1891. 1:07:07only on the x-axxis, but we can also
  1892. 1:07:09change it on the y-axis. As you can see,
  1893. 1:07:12we have increased the spacing on the
  1894. 1:07:14vertical axis. The fill direction is
  1895. 1:07:16simple just like list layout. If you
  1896. 1:07:18were to select vertical, it would just
  1897. 1:07:20go like this instead of going like this.
  1898. 1:07:22Next up, we have fill direction max
  1899. 1:07:24cells. If I was to quickly go ahead and
  1900. 1:07:26put this back to horizontal and change
  1901. 1:07:27this to two, as you can see, it will not
  1902. 1:07:29allow me to put more than two. If I put
  1903. 1:07:32this back to zero, it's just going to
  1904. 1:07:33think that it's infinite and it will go
  1905. 1:07:35as much as it wants until it tries to go
  1906. 1:07:38outside of the parent size. Um, for UI
  1907. 1:07:40grid layouts, unlike list layouts, wraps
  1908. 1:07:43is always enabled. You cannot disable
  1909. 1:07:45wraps. And then we have the sort order
  1910. 1:07:46just like UI list layout. Please go
  1911. 1:07:48check that for a deeper understanding.
  1912. 1:07:50Start corner can be changed. You can
  1913. 1:07:51change it to something like bottom
  1914. 1:07:53right, top right. What this essentially
  1915. 1:07:54does is that it's not going to change
  1916. 1:07:56the position of the frames. rather it's
  1917. 1:07:58going to change where the first frame
  1918. 1:08:00pops up that is uh in terms of sort
  1919. 1:08:03order. So for example, if this was on
  1920. 1:08:06zero and everything else was on first or
  1921. 1:08:08on one layout order and we changed that
  1922. 1:08:11the start corner would be top right
  1923. 1:08:12instead of top left, the zero is going
  1924. 1:08:15to show up here and then everything else
  1925. 1:08:16is going to be one. Next up we have a UI
  1926. 1:08:18page layout. What this basically does is
  1927. 1:08:20that it allows you to change your UIs
  1928. 1:08:23into individual frames of their own. For
  1929. 1:08:26example, if you have these five frames,
  1930. 1:08:28it's going to consider each frame as if
  1931. 1:08:30it was a page of its own, no matter its
  1932. 1:08:32size, and you can turn on animated. And
  1933. 1:08:35then if you were to scroll up and down
  1934. 1:08:36your mouse, you can see that it would
  1935. 1:08:38animate the pages. And this is a very
  1936. 1:08:40handy feature to have if you are new to
  1937. 1:08:43uh animations and whatnot. However,
  1938. 1:08:45honestly, no one really uses UI page
  1939. 1:08:47layouts anymore. Everybody just animates
  1940. 1:08:49them, animates the UIs, and makes them
  1941. 1:08:51function using normal grid layouts, list
  1942. 1:08:53layouts, and whatnot. behavior and
  1943. 1:08:55everything is the same as what we had in
  1944. 1:08:56UI list layout and grid layout. In
  1945. 1:08:57appearance, we can see that we have an
  1946. 1:08:59animated option. If you were to deselect
  1947. 1:09:01this, we can see that if we try to
  1948. 1:09:03change the animations wouldn't play.
  1949. 1:09:05Circular just means is the page going to
  1950. 1:09:07allow you to scroll back from the fifth
  1951. 1:09:10page in this case to the first one or
  1952. 1:09:12not. For example, if we don't have it
  1953. 1:09:14selected and we scrolled to the end, we
  1954. 1:09:16cannot scroll anymore. We cannot go back
  1955. 1:09:18to the first one. We'll have to scroll
  1956. 1:09:20upwards and then go back to the first
  1957. 1:09:22one. However, if we have circular
  1958. 1:09:24selected and we scroll to the last one,
  1959. 1:09:26this is in this case our fifth one, and
  1960. 1:09:28I try to scroll lower, we can see that
  1961. 1:09:30it pops up again without me having to
  1962. 1:09:32scroll upwards. So, this is basically
  1963. 1:09:34infinite rotation. The rest of the stuff
  1964. 1:09:36is pretty much tweening. Um, I would
  1965. 1:09:38urge you to go ahead and watch an
  1966. 1:09:40animation tutorial if you would like to
  1967. 1:09:42understand this stuff better because
  1968. 1:09:43tweening can take some time to get
  1969. 1:09:46inside your head. Last and yes,
  1970. 1:09:48absolutely the least, we have UI table
  1971. 1:09:50layout. No one uses this in 2026. No one
  1972. 1:09:53used this in 2025, 2024. This is a very
  1973. 1:09:56deprecated layout. You basically lay out
  1974. 1:09:58each frame as its own row, almost as if
  1975. 1:10:00you were on Microsoft Excel. I urge you
  1976. 1:10:02guys to learn list layouts, grid
  1977. 1:10:04layouts, and page layouts more, and
  1978. 1:10:05they're going to help you a lot more in
  1979. 1:10:08your UI journey rather than table
  1980. 1:10:10layouts. Now, I'm going to be brushing
  1981. 1:10:11up on some terminologies that we use in
  1982. 1:10:14UI importing and some concepts here and
  1983. 1:10:16there so that you guys can learn more
  1984. 1:10:18about importing. First up is grayscale.
  1985. 1:10:20Grayscaling basically means that instead
  1986. 1:10:22of uploading an image with color you
  1987. 1:10:24basically import it as white and black
  1988. 1:10:26so that you can color it inside Roblox
  1989. 1:10:28Studio. So here I have two images both
  1990. 1:10:30of them are different colors um as you
  1991. 1:10:32can see. However in studio both of them
  1992. 1:10:34are image color set to white. As you can
  1993. 1:10:36see image color is set to 255 which
  1994. 1:10:39means it is white. Um this one is also
  1995. 1:10:41set to 255. However we're going to see a
  1996. 1:10:44very key difference. Um, if you tried to
  1997. 1:10:46change the color of this one, for
  1998. 1:10:47example, it is going to change very
  1999. 1:10:49weirdly. As you can see, green doesn't
  2000. 1:10:51even turn into pure green and all of
  2001. 1:10:53this just turns into very weird color.
  2002. 1:10:56This is because Roblox cannot properly
  2003. 1:10:58color it because you have imported it as
  2004. 1:11:00red. Um, if you went to this one,
  2005. 1:11:03however, and try to color it, you can
  2006. 1:11:05see that it turns into an absolute pure
  2007. 1:11:07color, whatever color you want it to be.
  2008. 1:11:09I can also replicate that color one to
  2009. 1:11:10one, as you can see right here. Um, we
  2010. 1:11:13can play around with so many colors and
  2011. 1:11:14put it any color that we'd like. This is
  2012. 1:11:16one of the best features for grayscaling
  2013. 1:11:18your UIs. Very so often you're going to
  2014. 1:11:20see people um in their UIs, they animate
  2015. 1:11:23it so that when the mouse hovers over a
  2016. 1:11:25unit, for example, in an inventory UI,
  2017. 1:11:28the glow beneath the unit is going to
  2018. 1:11:30change colors. That only happens if the
  2019. 1:11:32glow itself was imported white and then
  2020. 1:11:35they change the color on Studio. We're
  2021. 1:11:37also going to go around and play with
  2022. 1:11:38some more stuff. If I was to add a UI
  2023. 1:11:40gradient to this for example and I was
  2024. 1:11:42to change the gradient color to
  2025. 1:11:44something like I'm going to hide that
  2026. 1:11:45for now you so you guys can see it one
  2027. 1:11:46go pink and then something like blue.
  2028. 1:11:49Now you're going to see that it also
  2029. 1:11:50changes the color depending on the
  2030. 1:11:52gradient which is one of the best things
  2031. 1:11:53about grayscaling. We can go around and
  2032. 1:11:55play with more gradients from my plug-in
  2033. 1:11:57right here. As you can see it just all
  2034. 1:11:59looks so splendid and nice. Let's
  2035. 1:12:01quickly go ahead to a third party
  2036. 1:12:03software and I will show you how to
  2037. 1:12:04grayscale. So this is the uh icon that
  2038. 1:12:06we had. Um, as you can see, it is
  2039. 1:12:08currently colored red. There are a lot
  2040. 1:12:10of ways to change this to white. Um, the
  2041. 1:12:12way that I'm going to be sticking with
  2042. 1:12:14is that I'm going to in Photoshop simply
  2043. 1:12:16come to image adjustments and then click
  2044. 1:12:18on desaturate. This is a beginner
  2045. 1:12:20mistake that people make. They're going
  2046. 1:12:21to try and desaturate it and then import
  2047. 1:12:24it to studio. This is not going to work
  2048. 1:12:26because the color is set to gray. If you
  2049. 1:12:29were to pick the color, you can see that
  2050. 1:12:30it's set right around here. If you
  2051. 1:12:33imported this into Roblox Studio and
  2052. 1:12:34tried to color it around, it will not be
  2053. 1:12:37able to pick the brightest colors
  2054. 1:12:39because the value simply does not go
  2055. 1:12:41that high. If you imported it as gray,
  2056. 1:12:43it will only if you tried to change the
  2057. 1:12:46image color three to something like
  2058. 1:12:47bright red, it would only go as far as
  2059. 1:12:50here in Roblox Studio. So, you have to
  2060. 1:12:52make sure that the color is absolutely
  2061. 1:12:54pure white so that you can also make it
  2062. 1:12:56dark yourself if you want it in Roblox
  2063. 1:12:58Studio. So, in order to fix that, what
  2064. 1:13:00we're going to do is we're going to go
  2065. 1:13:01to image adjustments and levels. And
  2066. 1:13:03then we going to move this bar slightly
  2067. 1:13:06down until we cover this entire peak
  2068. 1:13:10that we see right here. If we quickly
  2069. 1:13:12click on preview and on preview, we can
  2070. 1:13:14see that the white color has dominated.
  2071. 1:13:17Uh maybe maybe the black color has been
  2072. 1:13:20dominated a bit as well. So, what we're
  2073. 1:13:22going to do to fix that is we are going
  2074. 1:13:23to simply put this somewhere safe like
  2075. 1:13:25three. And now we are absolutely certain
  2076. 1:13:28that it's completely white and black.
  2077. 1:13:30And if we were to go and import this
  2078. 1:13:33into Roblox Studio now, it is going to
  2079. 1:13:35be pure white. There is a blending mode
  2080. 1:13:37that Roblox uses in order to color the
  2081. 1:13:39grayscale images. And it is multiply. If
  2082. 1:13:42I was to go ahead and quickly clip this
  2083. 1:13:44new layer to that icon and then maybe
  2084. 1:13:46use the red color and then I would color
  2085. 1:13:50it all over it. As you can see, it
  2086. 1:13:52doesn't function the way it has to. Even
  2087. 1:13:54if I put the blending mode to color, it
  2088. 1:13:56doesn't. However, Roblox uses multiply.
  2089. 1:13:59As we can see, this is the blending mode
  2090. 1:14:00that Roblox uses. I'm also going to
  2091. 1:14:02prove to you guys that if you import as
  2092. 1:14:04gray, it's not going to function the way
  2093. 1:14:06you guys intend for it to do. And now we
  2094. 1:14:08are going to turn on the same thing that
  2095. 1:14:10we had earlier without any change. It's
  2096. 1:14:12still set to multiply. As soon as we
  2097. 1:14:14turn it on, you can see that it's not
  2098. 1:14:16bright red anymore. And this is because
  2099. 1:14:17the blending mode that Roblox uses is
  2100. 1:14:19multiply. It's going to make it darker
  2101. 1:14:21no matter what you do. That's why it's
  2102. 1:14:23heavily advised that every single
  2103. 1:14:25grayscaleed images that you upload in
  2104. 1:14:27Roblox follow absolute pure white color.
  2105. 1:14:30Next, we are going to learn what a
  2106. 1:14:31hitbox is. More often than not, when you
  2107. 1:14:33are importing UIs or doing some stuff,
  2108. 1:14:35asking for help, you are going to hear
  2109. 1:14:37people tell you to add a hitbox to the
  2110. 1:14:39button that you are trying to import
  2111. 1:14:41into Roblox Studio. What that basically
  2112. 1:14:43means is that let's say this is your
  2113. 1:14:45intended button. Now, you can see that
  2114. 1:14:47this is an image label and you cannot
  2115. 1:14:50actually click this. it is not going to
  2116. 1:14:51function as a button. So you have to
  2117. 1:14:53turn it into a button. Perhaps for
  2118. 1:14:55whatever reason, maybe you're done with
  2119. 1:14:57everything and you don't find it
  2120. 1:14:58feasible that you want to turn this into
  2121. 1:15:00an image button. Maybe you've already
  2122. 1:15:01written all the scripts and you don't
  2123. 1:15:03want to go back and redo anything. What
  2124. 1:15:05you're going to do is simply you are
  2125. 1:15:06going to add an image button inside of
  2126. 1:15:08this. You're going to center it. Remove
  2127. 1:15:10background fit to parent size. And then
  2128. 1:15:12let's lower the image transparency just
  2129. 1:15:14a bit for now. And then we are going to
  2130. 1:15:17make the size absolutely what we want.
  2131. 1:15:20Maybe something like this. And then
  2132. 1:15:22something like this. And then let's
  2133. 1:15:25lower it to something like this.
  2134. 1:15:30Maybe something like 67 or maybe 0.65.
  2135. 1:15:39There we go. And you can now rename this
  2136. 1:15:41into a hitbox. This is going to act as
  2137. 1:15:43the intended hitbox that you have. What
  2138. 1:15:45a hitbox basically means is that you've
  2139. 1:15:47seen in combat games, every single
  2140. 1:15:49character has a sort of a hitbox. If you
  2141. 1:15:51fire or hit outside of that hitbox, it's
  2142. 1:15:53not going to drain their HP. If you move
  2143. 1:15:55your mouse on top of it, you can see
  2144. 1:15:57that your mouse turns into this clicking
  2145. 1:15:58icon or clicking cursor. So, UI
  2146. 1:16:00designers call this sort of image button
  2147. 1:16:02under this image label a hitbox. So,
  2148. 1:16:04I've quickly gone ahead and made a
  2149. 1:16:06mockup UI just to explain to you guys
  2150. 1:16:08how to properly apply constraints.
  2151. 1:16:09[music] Um, a lot of people make this
  2152. 1:16:11beginner mistake. What they do is that
  2153. 1:16:13they add aspect ratio constraints to
  2154. 1:16:15basically everything that they're doing.
  2155. 1:16:17So what they're going to do is for
  2156. 1:16:18example they're going to click on the
  2157. 1:16:19scrolling frame. They're going to add
  2158. 1:16:21aspect ratio constraint to that. They're
  2159. 1:16:22going to click on the holder aspect
  2160. 1:16:24ratio constraint background aspect ratio
  2161. 1:16:26constraint. Everything else
  2162. 1:16:28simultaneously aspect ratio constraint
  2163. 1:16:30until they come to the container again
  2164. 1:16:32aspect ratio constraint. Maybe in some
  2165. 1:16:34cases as well they are going to make the
  2166. 1:16:36beginner beginner beginner mistake of
  2167. 1:16:37adding an aspect ratio constraint to the
  2168. 1:16:39main screen size like this. This is a
  2169. 1:16:42horrible way of adding constraints to
  2170. 1:16:44your UI. Um, for example, if you are
  2171. 1:16:46making a full screen UI, if you are
  2172. 1:16:48making a player HUD, for example, and
  2173. 1:16:50you were to keep this size and then add
  2174. 1:16:52an aspect ratio constraint underneath
  2175. 1:16:54this, what would happen is that the 16
  2176. 1:16:56ratio 9 format would be constrained. And
  2177. 1:16:59if someone tried to play the game on,
  2178. 1:17:01let's say, a mobile that was wider than
  2179. 1:17:0316 ratio 9, maybe something like 19
  2180. 1:17:05ratio 9 or 1 ratio 1, like a VGA for a
  2181. 1:17:08PS5, the main frame would still be stuck
  2182. 1:17:10to 16 ratio 9. As we can see right here,
  2183. 1:17:12it's 1.781. This value would not change.
  2184. 1:17:15So there would be empty space on the
  2185. 1:17:18borders in the end and the top. So we
  2186. 1:17:20don't want to go that path at all. What
  2187. 1:17:23we're going to do, the perfect way to
  2188. 1:17:24size a UI is simply by, let's first show
  2189. 1:17:28you guys what it would look like without
  2190. 1:17:29any aspect ratio constraints. If we
  2191. 1:17:32removed all aspect ratio constraints,
  2192. 1:17:34this is what it would look like. As you
  2193. 1:17:35can see, it is stretching and this is
  2194. 1:17:37not what we want. Um, and let's go back
  2195. 1:17:39to 1080p.
  2196. 1:17:40All we have to do is since all of this
  2197. 1:17:43is already scaled, what we are going to
  2198. 1:17:44do is we are going to simply add an
  2199. 1:17:46aspect ratio constraint to the container
  2200. 1:17:48that holds all of these frames. Let's go
  2201. 1:17:51there. And that's it. You don't have to
  2202. 1:17:53add an aspect ratio constraint anywhere
  2203. 1:17:55else. If we were to change this to VGA,
  2204. 1:17:57we can see that it perfectly scales.
  2205. 1:18:00This is so much more cleaner, not an
  2206. 1:18:02isore to look at, easy to script and
  2207. 1:18:04animate, and so much more. One more
  2208. 1:18:05thing that I want to teach you guys is
  2209. 1:18:07that when you are laying out your UI, it
  2210. 1:18:09is always recommended that you make your
  2211. 1:18:11entire UI and lay out all the elements
  2212. 1:18:14and then you make a container frame on
  2213. 1:18:16top of that like this one that I made.
  2214. 1:18:18As you can see, I made all of these
  2215. 1:18:19three things in the start. And if you
  2216. 1:18:22select all of them, you can see this box
  2217. 1:18:24appear. I just made another frame that
  2218. 1:18:26is basically this box that's showing the
  2219. 1:18:28selection for everything uh inside it.
  2220. 1:18:31And then I put all of these like three
  2221. 1:18:33things inside of that container frame.
  2222. 1:18:35And then I put an aspect ratio
  2223. 1:18:36constraint on that container frame. No
  2224. 1:18:38matter what device they look at it from,
  2225. 1:18:40it's not going to mess up. This is the
  2226. 1:18:42perfect way of doing it. So, please
  2227. 1:18:43follow this method. Next thing that I'm
  2228. 1:18:45going to show you guys is how to add a
  2229. 1:18:46fading effect on your scrolling frame.
  2230. 1:18:48As you guys can see, I have my little
  2231. 1:18:50scrolling frame right here. It has all
  2232. 1:18:52these units inside of it. Um, what I
  2233. 1:18:54want to do is that I want to add like a
  2234. 1:18:56little fade here so that it doesn't look
  2235. 1:18:58like they're just simply cutting off
  2236. 1:19:00into nothingness. The easiest way to do
  2237. 1:19:01this would simply be to put a frame on
  2238. 1:19:03top of everything else. Let's quickly
  2239. 1:19:05like understand what's going on. This is
  2240. 1:19:07a frame and then the scrolling frame
  2241. 1:19:09inside of this. You see this space
  2242. 1:19:11between the scrolling frame and the
  2243. 1:19:12holder somewhere around here along this
  2244. 1:19:16small gap? That's where we're going to
  2245. 1:19:18create another frame. So, let's go ahead
  2246. 1:19:20and create a frame inside of this holder
  2247. 1:19:22frame. Let's center it completely fit to
  2248. 1:19:25parent size. And then we are going to
  2249. 1:19:26resize it a bit bigger. And then we're
  2250. 1:19:28going to make it a bit smaller as well.
  2251. 1:19:30Let's do that with our systematic keys
  2252. 1:19:33rather than doing it manually with our
  2253. 1:19:35mouse. Let's quickly do something 0.99.
  2254. 1:19:37And then 0.99 here as well. And then
  2255. 1:19:41let's quickly go ahead and make this
  2256. 1:19:43smaller. Somewhere here. That's how far
  2257. 1:19:46we want this fading effect to go. And we
  2258. 1:19:48don't want it to affect the scrolling
  2259. 1:19:49bar. So we're going to resize it there
  2260. 1:19:50and keep it somewhere here. Next up,
  2261. 1:19:53what we are going to do is maybe make it
  2262. 1:19:54a bit bigger still. And yeah, now we are
  2263. 1:19:58going to go ahead and add a UI gradient
  2264. 1:20:00to it. The UI gradient is going to
  2265. 1:20:03simply be used for transparency. Let's
  2266. 1:20:06quickly go ahead and do this. So, what I
  2267. 1:20:08basically just did there is that I am
  2268. 1:20:10going to make it fade away into the
  2269. 1:20:11distance. I'm going to change the
  2270. 1:20:13rotation to 90 or sorry minus 90. And
  2271. 1:20:16then I'm going to change the color of
  2272. 1:20:17the UI gradient to uh pick the screen
  2273. 1:20:20color and then select this color. Okay.
  2274. 1:20:24As we can see now, it's already
  2275. 1:20:25replicating that effect that we wanted.
  2276. 1:20:27We can make it a bit more darker if we
  2277. 1:20:29want to. Uh we can just move it up
  2278. 1:20:31slightly up. Let's go ahead and move it
  2279. 1:20:33right here. As we can see, it has become
  2280. 1:20:35so much more darker. We can also just
  2281. 1:20:37make it a bit bigger depending on what
  2282. 1:20:39we want. Something like that. Uh, a lot
  2283. 1:20:41of people make the beginner mistake of
  2284. 1:20:43using a canvas group for this fading
  2285. 1:20:44effect. I would not recommend that
  2286. 1:20:46because canvas groups can be very uh
  2287. 1:20:48resource demanding. I can also quickly
  2288. 1:20:50go ahead and make the ends of all of
  2289. 1:20:52these a bit smoother. So, let's quickly
  2290. 1:20:54go ahead put put this like this.
  2291. 1:20:57Something like this perhaps. And then
  2292. 1:20:58let's go and do this as well. As we can
  2293. 1:21:01see now, it looks much more smoother.
  2294. 1:21:03and it looks like it is actually being
  2295. 1:21:05faded away rather than a sharp cut. So,
  2296. 1:21:08I've quickly gone ahead and made like a
  2297. 1:21:09little imported bar. As you can see,
  2298. 1:21:11this is any random bar. This could be
  2299. 1:21:13used as a health bar, a boss HP bar, or
  2300. 1:21:15anything of the sort. Um, in this UI,
  2301. 1:21:17what I'm trying to show you guys is a
  2302. 1:21:19lot of people make this beginner
  2303. 1:21:21mistake. They're going to try and make
  2304. 1:21:23the health bar function, but they'll be
  2305. 1:21:25lost on how to make it happen. First of
  2306. 1:21:27all, the hierarchy that I've gone with,
  2307. 1:21:29you can go with something different, but
  2308. 1:21:30it's not really necessary. Um, I'm just
  2309. 1:21:32going to quickly go ahead and add
  2310. 1:21:34[music] an aspect ratio constraint to
  2311. 1:21:35this. And I'm going to make sure that
  2312. 1:21:37it's ultra scale. So everything is
  2313. 1:21:38scaled inside of it as well. Let's go
  2314. 1:21:40ahead and call this the base and call
  2315. 1:21:42this the HP. So this is the red part.
  2316. 1:21:46The proper way is not by moving it or
  2317. 1:21:49scaling it from one side to the other.
  2318. 1:21:51This is not going to work. If you also
  2319. 1:21:52have the scale type set to stretch, this
  2320. 1:21:54is going to cause a lot of problems.
  2321. 1:21:55Make sure it's fit. So we're going to
  2322. 1:21:57quickly go back and put it fit. So the
  2323. 1:22:00proper way of making this health bar
  2324. 1:22:03work is by using a UI gradient with
  2325. 1:22:06transparency. Let's add a UI gradient.
  2326. 1:22:08And now what we're going to do is we're
  2327. 1:22:10going to go to the transparency and
  2328. 1:22:12click on the three dots. Move this
  2329. 1:22:14completely higher and make another
  2330. 1:22:16vertice and bring it all the way near
  2331. 1:22:19the end just to just enough so that it's
  2332. 1:22:22slightly behind it right here. You know,
  2333. 1:22:24maybe one step ahead right here. So now
  2334. 1:22:27if you were to move this entire gradient
  2335. 1:22:29to the left using offset it is going to
  2336. 1:22:32start becoming empty. So for example
  2337. 1:22:33look at this if I was to go minus0.1
  2338. 1:22:37as you can see it is now going to start
  2339. 1:22:39lowering
  2340. 1:22:41-0.2
  2341. 1:22:43maybe -0.5
  2342. 1:22:45I can also put it something like -0.9
  2343. 1:22:48near the end maybe just let's go with
  2344. 1:22:50-0.1 it is now completely gone. This is
  2345. 1:22:53how you exactly work with imported bars.
  2346. 1:22:55So, next up, what we have is Slice.
  2347. 1:22:58Slice is one of the greatest things that
  2348. 1:23:00Roblox has to offer when it comes to
  2349. 1:23:01images. This is very, very versatile for
  2350. 1:23:04stretching your UIs without losing any
  2351. 1:23:07pixels on things that you don't want to
  2352. 1:23:09stretch. Let me quickly go ahead and
  2353. 1:23:11give an example. Um, this looks very
  2354. 1:23:13confusing, but trust me, it is very,
  2355. 1:23:15very simple. All you have to do is
  2356. 1:23:17scroll your mouse all the way here,
  2357. 1:23:18click right here, and as you can see,
  2358. 1:23:20these three dots will pop up. You're
  2359. 1:23:22going to click on this and then you will
  2360. 1:23:24have this sort of interface pop up. All
  2361. 1:23:26you have to do is try to understand
  2362. 1:23:28what's happening here. Let's drag this
  2363. 1:23:31right here. And then we are going to
  2364. 1:23:33drag this bit right here.
  2365. 1:23:36Something like this. [music] We're going
  2366. 1:23:38to go with the same values and then we
  2367. 1:23:39are going to click on close. So what it
  2368. 1:23:41does is that it's going to scale
  2369. 1:23:43everything apart from the things that we
  2370. 1:23:45selected on the left side and the right
  2371. 1:23:47side. Let's quickly go and demonstrate.
  2372. 1:23:49If you were to make it slow, if you were
  2373. 1:23:51to make it smaller, we can see that the
  2374. 1:23:53UI looks absolutely proper. The right
  2375. 1:23:55and the left side is completely fine.
  2376. 1:23:57Let's quickly go ahead and resize it. As
  2377. 1:23:59you can see, nothing is messing up. The
  2378. 1:24:02left and right side is perfectly fine,
  2379. 1:24:04even though the entire UI itself is
  2380. 1:24:07still being stretched. It is a very
  2381. 1:24:10advanced version of stretch. And slice
  2382. 1:24:12is used in a lot of loading screens, a
  2383. 1:24:14lot of uh flip books, a lot of
  2384. 1:24:16spreadsheets, and it is just one of the
  2385. 1:24:18best features that Roblox has to offer
  2386. 1:24:19overall. Similarly, if I was to position
  2387. 1:24:22this in the center and quickly go back
  2388. 1:24:24to slice, and this time, instead of
  2389. 1:24:26doing it here, let me just quickly go
  2390. 1:24:28ahead and put it somewhere here. So, 55
  2391. 1:24:31on the top and 55 on the bottom. Let's
  2392. 1:24:33quickly go ahead and close this. Um,
  2393. 1:24:35let's try to resize this on the Y-axis.
  2394. 1:24:38Now let's go back to something like
  2395. 1:24:41this. And now let's make it um resized
  2396. 1:24:44like this. As you can see, our original
  2397. 1:24:47frame was something like this. But now
  2398. 1:24:49it can be stretched all the way here.
  2399. 1:24:53It's not losing any quality on the top
  2400. 1:24:55and bottom. All it's doing is that it's
  2401. 1:24:58stretching without ruining the actual
  2402. 1:25:01quality of the image label itself. I've
  2403. 1:25:03gone ahead and created a round progress
  2404. 1:25:05bar for you guys. Um, I'm going to break
  2405. 1:25:07it down to you and show you how I did
  2406. 1:25:09it. So, basically, first we made like a
  2407. 1:25:11container. We just made a square,
  2408. 1:25:13positioned it in the center, and it
  2409. 1:25:15doesn't matter what values you used.
  2410. 1:25:17Just keep it any size and put it in the
  2411. 1:25:19center. Then, we added an aspect ratio
  2412. 1:25:21constraint to it. Made sure it was all
  2413. 1:25:22scaled. And now the container part is
  2414. 1:25:24over. We're not going to go back to the
  2415. 1:25:26container. After that, what we did was
  2416. 1:25:27we simply added a bottom. Now, I'm going
  2417. 1:25:30to hide everything else so I can show
  2418. 1:25:31you what this is about. This is just a
  2419. 1:25:34round circle with a UI stroke inside of
  2420. 1:25:37it. Um, it's basically a square frame
  2421. 1:25:39with a UI corner that's set to one. So,
  2422. 1:25:41it's a complete circle. And then a UI
  2423. 1:25:43stroke so that it can uh exceed the
  2424. 1:25:46boundary that I want it to exceed. So,
  2425. 1:25:48that's the bottom frame. After that, I
  2426. 1:25:50have two left frame, two left and right
  2427. 1:25:53frames. I'm going to go ahead and make
  2428. 1:25:54them visible. As you can see, this is
  2429. 1:25:56the left frame. Basically what I do in
  2430. 1:25:58this is that uh if we click on the left
  2431. 1:26:00frame and hide the frame inside of it.
  2432. 1:26:02This is just a simple frame that is um
  2433. 1:26:05anchored to the left side. As you can
  2434. 1:26:07see the anchor point is set to 0, 0.5,
  2435. 1:26:10which means right here. And I just put
  2436. 1:26:13the size to 0501.
  2437. 1:26:16Basically, it needs to be completely in
  2438. 1:26:18the half and cover the Y-axis completely
  2439. 1:26:20apart from the stroke. That's the bottom
  2440. 1:26:22frames stroke. Um so it covers it
  2441. 1:26:25completely. But we added a small value
  2442. 1:26:27higher just for the sake of it so that
  2443. 1:26:30there's no empty space when it's
  2444. 1:26:32actually working. I'll show you in a
  2445. 1:26:33second. So um let's go ahead and make
  2446. 1:26:36the frame visible. As you can see this
  2447. 1:26:38is how it is. It's like a semicircle and
  2448. 1:26:43uh what we do after that is we literally
  2449. 1:26:45go inside the frame and then we have
  2450. 1:26:47this UI gradient. This basically has a
  2451. 1:26:49transparency set to this and it is like
  2452. 1:26:511 1 0 0. And then all we have to do is
  2453. 1:26:55we just have to change the rotation of
  2454. 1:26:57that UI [music] gradient. If I was to go
  2455. 1:26:59ahead and do it, you can see it
  2456. 1:27:00functions like that. So this is all I
  2457. 1:27:03have to do. Uh this is all stuff that's
  2458. 1:27:06meant to be scripted. And then if I was
  2459. 1:27:08to go ahead and quickly enable the right
  2460. 1:27:10one. Um as you can see this is also a
  2461. 1:27:12white circle. Uh the reason why I put
  2462. 1:27:14both of them as 0.501 instead of 0.5 is
  2463. 1:27:17let me show you. If I put a 0.5 for
  2464. 1:27:19both, this is what happens. um I don't
  2465. 1:27:22want to risk this small uh thing. So I'm
  2466. 1:27:25going to put a 0501. Apart from that, we
  2467. 1:27:27can also um quickly go ahead and do the
  2468. 1:27:30same UI gradient thing that we did right
  2469. 1:27:32here. Uh sorry, let's just change the
  2470. 1:27:34rotation. And as you can see, it's
  2471. 1:27:36functioning exactly how we want it to.
  2472. 1:27:39So let's go ahead and put this at zero
  2473. 1:27:40again. And next up, um what we're going
  2474. 1:27:43to do is we are going to enable the top.
  2475. 1:27:46Uh let me first hide the text label so
  2476. 1:27:48you don't get overwhelmed. enable the
  2477. 1:27:50top. And as you can see, this is just a
  2478. 1:27:52round frame on the top with a UI stroke
  2479. 1:27:55on it. And this is just made so that it
  2480. 1:27:58can give the illusion that we have the
  2481. 1:28:01actual circle uh beneath it. And this
  2482. 1:28:05[music] entire thing is just one image
  2483. 1:28:07label when that's not the case. So after
  2484. 1:28:09that, what I'm going to do is I'm going
  2485. 1:28:10to enable the text label that I added.
  2486. 1:28:12This is just like a placeholder. You can
  2487. 1:28:14see it increase and decrease. Um, if I
  2488. 1:28:16was to go and try to make something
  2489. 1:28:18similar uh or make something actually
  2490. 1:28:22represent 67, what I could do is I can
  2491. 1:28:24change the rotation to something like
  2492. 1:28:26something like this maybe. As you can
  2493. 1:28:29see, this looks pretty much like 67%.
  2494. 1:28:32So, yeah, this is how it would work in a
  2495. 1:28:34real setting. Um, obviously if you do it
  2496. 1:28:37manually, there could be some problems
  2497. 1:28:39like something like this and this is not
  2498. 1:28:42what we want. So, in the script itself,
  2499. 1:28:44the scriptor can easily script it. so
  2500. 1:28:46that this issue does not happen. One
  2501. 1:28:47more thing that I'd like to brush up on
  2502. 1:28:49is the Z-indexes. As you can see, the
  2503. 1:28:51bottom frame is set to zero Z-index.
  2504. 1:28:53Left one and right one are set to one
  2505. 1:28:54and then top is set to two. This is the
  2506. 1:28:57exact order of Z-indexes that we need.
  2507. 1:28:59Apart from that, you might be wondering
  2508. 1:29:00why I have a left frame and the right
  2509. 1:29:02frame and then another frame inside of
  2510. 1:29:04it. This is only because I have to turn
  2511. 1:29:06on clip descendants. If I turn it off,
  2512. 1:29:08it will start causing problems. As you
  2513. 1:29:09saw, something popped up right here. So,
  2514. 1:29:11you have to do it in this specific
  2515. 1:29:13manner, otherwise it won't work. So now
  2516. 1:29:15we're going to look into Kqui. KUI is a
  2517. 1:29:17plugin that I created myself for the
  2518. 1:29:20sake of helping people import and manage
  2519. 1:29:22their UIs better in studio. It is a very
  2520. 1:29:25versatile and fun to use plugin for a
  2521. 1:29:27plugin that is free. It's possible that
  2522. 1:29:29by the time you guys are watching this
  2523. 1:29:31video, I've made some changes to the
  2524. 1:29:32overall interface of the plugin, but
  2525. 1:29:34please rest assured the main idea of the
  2526. 1:29:36plugin is always going to stay the same,
  2527. 1:29:38so you don't have to worry about that.
  2528. 1:29:39So the first thing that we're going to
  2529. 1:29:40do is we're going to quickly go to
  2530. 1:29:42starter GUI and create a screen GUI.
  2531. 1:29:48After creating a screen GUI, we're going
  2532. 1:29:50to insert a frame inside of it. So KUI
  2533. 1:29:53has a lot of features that are very,
  2534. 1:29:55very nice to have. They speed up the
  2535. 1:29:57process insanely much when you're
  2536. 1:29:59importing. So on the top we can see that
  2537. 1:30:01we have our transform section. The
  2538. 1:30:03entire plug-in is divided into certain
  2539. 1:30:05sections. We have transform, quick
  2540. 1:30:07actions, recclass, and then UI
  2541. 1:30:09gradients. In the transform section, we
  2542. 1:30:11have two buttons called scale and
  2543. 1:30:14offset. What this essentially means, if
  2544. 1:30:15you've seen my first video where I
  2545. 1:30:17explained this in a bit more detail,
  2546. 1:30:18every single value in Roblox uh related
  2547. 1:30:22to UIs has two different properties,
  2548. 1:30:25offset and scale. So if I was to move my
  2549. 1:30:28frame here for example and I was to
  2550. 1:30:30quickly resize it, you can see that the
  2551. 1:30:34size of this frame is set to offset. Um
  2552. 1:30:36what this essentially means is that it's
  2553. 1:30:38using pixels to scale instead of a value
  2554. 1:30:41that should be relative to our screen
  2555. 1:30:42resolution. So if this is the value that
  2556. 1:30:46we have in offset, let's say 500 by 100,
  2557. 1:30:50and we have to turn this into scale. If
  2558. 1:30:53I do it manually without any plug-in, I
  2559. 1:30:55would have to think about the right
  2560. 1:30:57values. For example, in scale, we can
  2561. 1:31:00see that this from here to here on the
  2562. 1:31:02x-axis is one, right? This would
  2563. 1:31:04probably take me to like this would be
  2564. 1:31:060.5. This would be 0.25.
  2565. 1:31:10So, I'm assuming it would probably be
  2566. 1:31:12somewhere around 0.25. But for sake, for
  2567. 1:31:14the sake of safety, I'm going to go with
  2568. 1:31:150.3. On the y-axis, we can see that this
  2569. 1:31:17would be a very short amount. I'm
  2570. 1:31:19assuming probably something like 0.08.
  2571. 1:31:22If I was to put both of these values, we
  2572. 1:31:24can see that I was quite close but still
  2573. 1:31:26very far off. Now, I can't get that
  2574. 1:31:29exact value back no matter what I do.
  2575. 1:31:32Um, I would have to constantly keep
  2576. 1:31:35adjusting it to see like what the proper
  2577. 1:31:37value is. But with KU, what we can do is
  2578. 1:31:39we can instantly select size. We have
  2579. 1:31:43the offset value here in pixels and we
  2580. 1:31:45can click on scale. It has scaled the
  2581. 1:31:49entire frame properly. Now we have the
  2582. 1:31:51scale values without any deformation in
  2583. 1:31:54its shape. So for example, if I was
  2584. 1:31:56totrl + z and control shift z, you can
  2585. 1:31:58see the difference before and after.
  2586. 1:32:00It's the same. Apart from that, we're
  2587. 1:32:03going to see some more stuff. Um,
  2588. 1:32:05sometimes this is already scaled. But if
  2589. 1:32:08you had a position that's set to offset
  2590. 1:32:11and you moved it, for example, here and
  2591. 1:32:14now you wanted to scale it because every
  2592. 1:32:16time you change your window, it's not
  2593. 1:32:17scaled. For example, here we can see it
  2594. 1:32:19literally goes outside of the screen. So
  2595. 1:32:21if we wanted to scale this, do the same
  2596. 1:32:23thing that we did with sizing. We would
  2597. 1:32:25have to think of a proper number. So
  2598. 1:32:27thinking about the position, I'm
  2599. 1:32:29assuming that this position, since the
  2600. 1:32:31anchor point is set to here, it's
  2601. 1:32:33probably somewhere like 0.5, 0.6, 0.65,
  2602. 1:32:37and then 0.4. Something like 0.65 and
  2603. 1:32:420.4. I was pretty close, but still quite
  2604. 1:32:44far off as you guys can see. So with my
  2605. 1:32:46plug-in, we can instantly just scale the
  2606. 1:32:48position. See, it's scaled with the
  2607. 1:32:50exact proper numbers just by clicking
  2608. 1:32:52the scale button here. And now I wanted
  2609. 1:32:55to, let's say, add a UI stroke to it. I
  2610. 1:32:59can go here and select UI stroke. And
  2611. 1:33:03now you can see it's set on fixed size.
  2612. 1:33:05What fixed size essentially means is
  2613. 1:33:07that it's set in pixels. This is still
  2614. 1:33:08offset. If I was to go with five pixels,
  2615. 1:33:11this is what I want. Now, if I wanted to
  2616. 1:33:14turn this into scaled, I would have to
  2617. 1:33:16again think about the proper number
  2618. 1:33:18manually. This is the only way that it's
  2619. 1:33:20possible without a plug-in. If I go 0.5,
  2620. 1:33:21it's way too big. I'm going to have to
  2621. 1:33:23go lower. 0.1 is still too big. 0.5 is
  2622. 1:33:26still too big. 0.2.
  2623. 1:33:29015 0.12. I see how annoying it is. So,
  2624. 1:33:33the simplest solution is just by using
  2625. 1:33:35the plug-in. If the pixels are set to
  2626. 1:33:37five, which is a fixed size, we can go
  2627. 1:33:40here, change the property to UI stroke,
  2628. 1:33:43and click on scale. As you can see, it
  2629. 1:33:46quickly set the thickness to the proper
  2630. 1:33:48value, which is in this case 0.01. And
  2631. 1:33:51that's it. We don't have to worry about
  2632. 1:33:53anything else. Similarly, if on this
  2633. 1:33:55frame we have a corner radius. If we can
  2634. 1:33:58quickly go and add a corner radius UI
  2635. 1:34:00corner and put the uh offset to
  2636. 1:34:04something like 30. As you can see, the
  2637. 1:34:07corners are pretty round. Now, if I
  2638. 1:34:08wanted to turn this into scale, I would
  2639. 1:34:10again have to think about the proper
  2640. 1:34:11value as we've already covered so many
  2641. 1:34:13times. I can quickly go on the list
  2642. 1:34:16here, click on corner radius, and then
  2643. 1:34:17click on scale. Boom. It's quickly set
  2644. 1:34:20its value to scale. And now we don't
  2645. 1:34:22have to worry about manually selecting
  2646. 1:34:24it or whatever.
  2647. 1:34:27Now what I've done is I've quickly gone
  2648. 1:34:29ahead and made this little frame inside
  2649. 1:34:31of this frame. And what I'm going to do
  2650. 1:34:33now is I'm going to make a layout inside
  2651. 1:34:36of this smaller frame.
  2652. 1:34:39I'm going to add some frames inside of
  2653. 1:34:41it and duplicate them. So if I wanted to
  2654. 1:34:45quickly change the padding, it would
  2655. 1:34:47again be something like if I just
  2656. 1:34:48quickly went and set it to like maybe 14
  2657. 1:34:50pixels.
  2658. 1:34:52And I like this gap a lot. And now I
  2659. 1:34:55want to change it to scale. I would have
  2660. 1:34:57to do the same thing. I would have to
  2661. 1:34:59start thinking about okay, what's the
  2662. 1:35:01proper uh value? It would be something
  2663. 1:35:03like 0.05 maybe. And no, still too big.
  2664. 1:35:07The easiest way is to just come here,
  2665. 1:35:09click on padding, and then scale. As you
  2666. 1:35:13can see, it quickly set the proper
  2667. 1:35:14number without me having to select it or
  2668. 1:35:16choose it or think about it. If instead
  2669. 1:35:18of a list layout, I was to add a grid
  2670. 1:35:20layout
  2671. 1:35:24and delete the list layout. You can see
  2672. 1:35:26that we have this sort of section here.
  2673. 1:35:29Now, as you can see, all these preset
  2674. 1:35:31values are already in offset. They're
  2675. 1:35:32not in scale. Uh, quickly, if I wanted
  2676. 1:35:35to make it them a bit bigger, maybe
  2677. 1:35:37change this padding to something like 10
  2678. 1:35:40and 15 and change the cell sizes to
  2679. 1:35:44something like 250. and 150 something
  2680. 1:35:48like this and maybe duplicate them a lot
  2681. 1:35:51more and turn on clip descendants on
  2682. 1:35:54this frame. Now you can see that I have
  2683. 1:35:56this specific gap and like the spacing
  2684. 1:35:59between each frame. Perhaps I like it,
  2685. 1:36:01perhaps I don't. But the values are set
  2686. 1:36:03in offset. If I want to change them to
  2687. 1:36:05scale, again the same thing. I would
  2688. 1:36:07have to go one by one by one. But KUI
  2689. 1:36:09allows us to scale them instantly
  2690. 1:36:11without having to put in our own input,
  2691. 1:36:14which saves us so much time. If I was to
  2692. 1:36:16come here quickly and change and click
  2693. 1:36:18on cell size and click on scale, we can
  2694. 1:36:20see that it quickly scaled all the cell
  2695. 1:36:22sizes. So, I've quickly gone ahead and
  2696. 1:36:24made like this little minor frame with a
  2697. 1:36:27scrolling frame inside of it to show you
  2698. 1:36:29guys how canvas sizing works. So, let's
  2699. 1:36:32say that I have a scrolling frame with
  2700. 1:36:34so many frames inside of it, a little
  2701. 1:36:36list layout and with wraps on so that it
  2702. 1:36:39can, you know, treat it like a sort of
  2703. 1:36:42an inventory. for example. Now, if I go
  2704. 1:36:45to the scrolling frame and I have the uh
  2705. 1:36:49canvas size here, which is basically the
  2706. 1:36:51amount of space that it's going to cover
  2707. 1:36:52inside of the scrolling frame. Let's say
  2708. 1:36:55that the canvas size is currently set
  2709. 1:36:56to, as you can see, 1,000, which is
  2710. 1:36:581,000 pixels. Um, you can keep scrolling
  2711. 1:37:01for 1,000 pixels or maybe, you know,
  2712. 1:37:03maybe if I change to 1,500, can keep
  2713. 1:37:05scrolling to 1,500 pixels. The gap
  2714. 1:37:07changed because of the UI list layout,
  2715. 1:37:08[music] which is being scaled. This is
  2716. 1:37:10currently set into uh offset. We don't
  2717. 1:37:13ever want offset because it's always
  2718. 1:37:15going to make problems when we view the
  2719. 1:37:17UI on different resolutions or different
  2720. 1:37:19devices. So, what we're going to do is
  2721. 1:37:22we're going to click on canvas size
  2722. 1:37:24right here. Canvas size as we can see.
  2723. 1:37:26And then we're going to click on scale.
  2724. 1:37:28As you can see, it quickly set like the
  2725. 1:37:30proper uh scaled value right here for
  2726. 1:37:332.906
  2727. 1:37:35from 1,500 which gave it the perfect
  2728. 1:37:38positioning and sizing. Now that we're
  2729. 1:37:40done with the basic transforming, the
  2730. 1:37:41scaling and offset, we have this grid
  2731. 1:37:44right here. Uh you can see all these
  2732. 1:37:46arrows. We have like [music] the top
  2733. 1:37:48right, top, top left, left, and all
  2734. 1:37:50these different arrows like the center
  2735. 1:37:52one here. Um what this basically does is
  2736. 1:37:55it changes the position of the currently
  2737. 1:37:57selected object. For example, I have the
  2738. 1:37:59frame selected right here. It's going to
  2739. 1:38:01change its position or anchor or both
  2740. 1:38:05depending on what you have selected. So
  2741. 1:38:06a quick demonstration. If I have both of
  2742. 1:38:09them selected, right, as we can see
  2743. 1:38:11right now, the anchor point is set to 0
  2744. 1:38:120, which means it's right here. If it
  2745. 1:38:15was 0.5 and 0.5, it would be right here.
  2746. 1:38:18And 1, 1 would be right here. Um, if you
  2747. 1:38:21don't understand what that means, please
  2748. 1:38:23watch my first video. It's going to help
  2749. 1:38:25you a lot. So, if I was to quickly go
  2750. 1:38:27ahead and click on this button right
  2751. 1:38:29here, as you can see, it changed to the
  2752. 1:38:32bottom right of my screen. Uh, it also
  2753. 1:38:34changed the anchor point and scaled the
  2754. 1:38:36position and put it 1, one. If I was to
  2755. 1:38:40change it now, the anchor point would
  2756. 1:38:41still stay the same and the position
  2757. 1:38:43would update in respect to this. So,
  2758. 1:38:46let's go back and put it in the center
  2759. 1:38:48of our screen. Now, it's in the center.
  2760. 1:38:50The anchor point is 0.5, 0.5. Position
  2761. 1:38:53is 0.5 and 0.5 as well. So many times
  2762. 1:38:56when uh you're importing UI, you're
  2763. 1:38:58going to make this mistake. you will
  2764. 1:39:00import all of it, position it properly,
  2765. 1:39:02and then you're going to realize that
  2766. 1:39:03the anchor points are all messed up,
  2767. 1:39:05which is going to cause insane problems
  2768. 1:39:07for the scriptor. Uh, when he's trying
  2769. 1:39:09to animate the UI, we always have to
  2770. 1:39:12make sure, unless it's otherwise really
  2771. 1:39:14needed, always use 0.5 and 0.5 anchor
  2772. 1:39:17points. If we have this anchor point
  2773. 1:39:19selected, 1, one, and we put our UI in
  2774. 1:39:22the dead center. And now we're like, oh
  2775. 1:39:25man, it's already in the center. Now I
  2776. 1:39:27just want to change the anchor points.
  2777. 1:39:28But if I was to put them 0.5, 0.5
  2778. 1:39:31manually, it would mess up the position.
  2779. 1:39:33I don't want to risk changing the
  2780. 1:39:34position. All you have to do is deselect
  2781. 1:39:38position and click the center icon.
  2782. 1:39:42Boom. As you can see, only the anchor
  2783. 1:39:44point changed. No position changed. The
  2784. 1:39:46position is still the same. And [music]
  2785. 1:39:48that's it. You can also change the
  2786. 1:39:50anchor point all over. As you can see,
  2787. 1:39:52the position won't change. Only the
  2788. 1:39:54anchor point of the main frame will
  2789. 1:39:56change. Apart from that, the other way
  2790. 1:39:58around also works. If you only wanted to
  2791. 1:40:00change the position, now we can see
  2792. 1:40:03since it's in regard to the center
  2793. 1:40:04anchor point of the frame, you can set
  2794. 1:40:06it anywhere and it will function
  2795. 1:40:08properly. This is an extremely handy
  2796. 1:40:11tool to have. I cannot even begin to
  2797. 1:40:13explain how many times I use this tool
  2798. 1:40:14when I'm importing my UI personally. So,
  2799. 1:40:17apart from that, what we're going to do
  2800. 1:40:18now is since we're done with the entire
  2801. 1:40:20transform section, we're going to go to
  2802. 1:40:22quick actions. And there are some very
  2803. 1:40:24fun things in this uh plug-in in the
  2804. 1:40:26quick action section. Let's quickly
  2805. 1:40:28delete this frame and then add a new
  2806. 1:40:31frame. What if I wanted to quickly scale
  2807. 1:40:34this uh frame to the size of its parent,
  2808. 1:40:37which in this case is the entire screen.
  2809. 1:40:39Maybe it is supposed to function as a
  2810. 1:40:41container or a parent frame for
  2811. 1:40:43something else. What I would have to do
  2812. 1:40:44manually is I would have to come here
  2813. 1:40:47and then
  2814. 1:40:51it's so many like small things like this
  2815. 1:40:54which is why I developed this quick
  2816. 1:40:56action section. You can just click these
  2817. 1:40:57buttons and it's going to do everything
  2818. 1:40:59for you. So let's quickly undo all of
  2819. 1:41:01that. We have this frame right here. So
  2820. 1:41:03what I can do with this plugin is
  2821. 1:41:05instantly put it in the center fit to
  2822. 1:41:07parent size. Remove background and done.
  2823. 1:41:10That's all. It took less than 2 seconds.
  2824. 1:41:12and the other way around. It took at
  2825. 1:41:14least like 15 seconds and these minor
  2826. 1:41:16things add up a lot and it's going to
  2827. 1:41:18delay you for hours when you're
  2828. 1:41:20importing. You can also read all the
  2829. 1:41:22descriptions of these buttons right
  2830. 1:41:23here. Uh next up that we're going to see
  2831. 1:41:25is fixed aspect ratio. This is a very
  2832. 1:41:28very very important uh quick action to
  2833. 1:41:31have. Some plugins actually don't have
  2834. 1:41:33this which surprises me. It's impossible
  2835. 1:41:35to import UI properly without having
  2836. 1:41:37this specific quick action uh button
  2837. 1:41:40right here. So what this essentially
  2838. 1:41:43does is that it adds a UI aspect ratio
  2839. 1:41:45constraint without uh ruining your
  2840. 1:41:49actual existing size of the frame that
  2841. 1:41:51you have in studio. It's going to
  2842. 1:41:53respect the boundaries that the frame
  2843. 1:41:54currently has and just lock it into that
  2844. 1:41:56size. For example, let's say that my
  2845. 1:41:58frame looked like
  2846. 1:42:00this and I wanted to add a US aspect
  2847. 1:42:04ratio constraint so that it wouldn't
  2848. 1:42:05change uh sizing on different screens.
  2849. 1:42:08For example, right now if we went to
  2850. 1:42:09VGA, we can see that it becomes sort of
  2851. 1:42:11a square. I don't want it to do this.
  2852. 1:42:13So, if I wanted it to keep this specific
  2853. 1:42:16size, what I would have to do is I would
  2854. 1:42:18have to [music]
  2855. 1:42:19plus like add something new and then UI
  2856. 1:42:22aspect ratio constraint. Now, the main
  2857. 1:42:25problem again is that I would have to
  2858. 1:42:26manually try and find the proper value
  2859. 1:42:29that it had before. If I quickly control
  2860. 1:42:31Z, it has to be somewhere here. So,
  2861. 1:42:34finding the proper value is going to
  2862. 1:42:35take such a long time. you would have to
  2863. 1:42:37think about something like maybe I think
  2864. 1:42:38that's going to be like 1.7. Uh, as we
  2865. 1:42:42can see that's not the right value.
  2866. 1:42:43There's so much differences. Um, maybe I
  2867. 1:42:46would have to go back and change it to
  2868. 1:42:48something like 1.5.
  2869. 1:42:50A bit still messed up. Probably [music]
  2870. 1:42:521.6. So instead of getting into all of
  2871. 1:42:54this algebra, what we would have to do
  2872. 1:42:56essentially with this plug-in is we have
  2873. 1:42:58the size, it's centered and everything.
  2874. 1:43:01We can come here, fix aspect ratio done.
  2875. 1:43:03That's it. It's all done. And now we
  2876. 1:43:06quickly click on this and we can see
  2877. 1:43:07that it already has like a very specific
  2878. 1:43:09uh aspect ratio selected. This is why
  2879. 1:43:12plugins are so nice to have and this
  2880. 1:43:13plug-in is being offered to you for
  2881. 1:43:15completely free. So use it as much as
  2882. 1:43:17you can. Nothing brings me more joy than
  2883. 1:43:19looking at you guys being creative and
  2884. 1:43:21putting out more works and allowing me
  2885. 1:43:23to contribute in some way. Apart from
  2886. 1:43:25that, if I was to quickly add a text
  2887. 1:43:28label inside of it, uh this is just a
  2888. 1:43:30very minor quick action. Uh it's nothing
  2889. 1:43:32big. You can just quickly press it here.
  2890. 1:43:34uh you would have to like scroll all the
  2891. 1:43:36way down. Maybe you're typing something
  2892. 1:43:38and you would have to come back here and
  2893. 1:43:39select that. Click it again. Scroll down
  2894. 1:43:42and then turn on skip text. Uh with this
  2895. 1:43:45button, you can just instantly do it
  2896. 1:43:46without any problems. For example, you
  2897. 1:43:48know, just if I was to quickly make a
  2898. 1:43:50text label uh center, fit to parent
  2899. 1:43:52size, remove background text. It's all
  2900. 1:43:54just so quick. As you can see, it's like
  2901. 1:43:56so good for buttons and the cross button
  2902. 1:43:59on the top right of most UIs. It's just
  2903. 1:44:01so handy to have this specific tool.
  2904. 1:44:03Now, in this plug-in, there's a hidden
  2905. 1:44:06secret gem that I've made for you guys.
  2906. 1:44:09Uh, this button [music] is gamechanging.
  2907. 1:44:13So, ultra scale, what ultra scale does
  2908. 1:44:16is it changes every property of every
  2909. 1:44:19descendant from offset to scale. If you
  2910. 1:44:21guys can't understand what that means,
  2911. 1:44:23let me break it down for you. If I have
  2912. 1:44:26this frame and let me just quickly mess
  2913. 1:44:29it up.
  2914. 1:44:33So, as we can see, everything is now
  2915. 1:44:35messed up in this UI. Every single
  2916. 1:44:37thing. We look at it in different
  2917. 1:44:39resolutions. It's all completely ruined.
  2918. 1:44:43So, in order to fix this, we would have
  2919. 1:44:46to go by each and every single one of
  2920. 1:44:48these. Select all of these frames maybe
  2921. 1:44:50to be fast as fast as possible. Click on
  2922. 1:44:53position and then scale. And we can see
  2923. 1:44:56the positions are all scaled for these
  2924. 1:44:58frames. Now, however, we still have to
  2925. 1:45:00do the sizing and then the canvas sizing
  2926. 1:45:02and then this US strokes and corners
  2927. 1:45:04inside of them and then the ones
  2928. 1:45:05outside. So much stuff. So, all you have
  2929. 1:45:08to do is select the parent frame that's
  2930. 1:45:10holding everything. Move your mouse,
  2931. 1:45:12click on ultra scale.
  2932. 1:45:15Now, if you were to scroll down, moment
  2933. 1:45:17of truth, everything is scaled. The
  2934. 1:45:20position is scaled, the sizing is
  2935. 1:45:23scaled, the frames inside, position,
  2936. 1:45:26sizing, everything is scaled. The UI
  2937. 1:45:28stroke is scaled. The UI corner is
  2938. 1:45:30scaled. [music] The scrolling frame is
  2939. 1:45:32scaled completely.
  2940. 1:45:35The canvas size is scaled.
  2941. 1:45:37Everything [music] in the entire UI goes
  2942. 1:45:40from offset to scale. It saves you quite
  2943. 1:45:43literally hours of effort. This single
  2944. 1:45:46button. So now we'll quickly look at
  2945. 1:45:48recclass. What it does is that um let's
  2946. 1:45:51say you've already made something. you
  2947. 1:45:53were making a scrollable inventory for
  2948. 1:45:55units UI for a TD game perhaps for a
  2949. 1:45:57tower defense and um you forgot to use a
  2950. 1:46:01scrolling frame. [music] You made it
  2951. 1:46:03inside of a frame and then you realized,
  2952. 1:46:05oh wait, I can't even scroll in a frame.
  2953. 1:46:08I did something wrong. So, how am I
  2954. 1:46:10supposed to fix this? You would have to
  2955. 1:46:11recreate the scrolling frame, match the
  2956. 1:46:13properties to the frame, and then change
  2957. 1:46:15the children and then put them inside of
  2958. 1:46:17the scrolling frame. And then just so
  2959. 1:46:20much stuff, literally like 15 to 20
  2960. 1:46:22minutes of work. Reclass. This reclass
  2961. 1:46:26is extremely detailed and advanced. All
  2962. 1:46:29you have to do is click the button.
  2963. 1:46:31That's it. Done. Now it's a scrolling
  2964. 1:46:33frame.
  2965. 1:46:35Now it's an image button. Now it's an
  2966. 1:46:38image label. Text button.
  2967. 1:46:41Enable text field. Now it's a text
  2968. 1:46:44label. Now it's a viewport frame. remove
  2969. 1:46:48background, anything you want to do. Now
  2970. 1:46:49it's a text box. I enable text scale
  2971. 1:46:52again, fit to parent size, everything
  2972. 1:46:55that you want to do, it does without any
  2973. 1:46:58sort of effort, without any sort of
  2974. 1:47:00problems, it fixes everything. One thing
  2975. 1:47:02that you guys have to keep in mind when
  2976. 1:47:03reclassing is that sometimes Ctrl Z can
  2977. 1:47:06cause problems. [music] So it is advised
  2978. 1:47:08if you guys were to reclass something,
  2979. 1:47:10for example, let's say I have this frame
  2980. 1:47:12right here, quickly make it bigger and
  2981. 1:47:14resize it a bit bigger. and I wanted to
  2982. 1:47:18uh recclass it into a scrolling frame.
  2983. 1:47:20Now, instead of pressing Ctrl Z, it is
  2984. 1:47:23advised that you guys just convert it
  2985. 1:47:25back to a frame. Last but not least, we
  2986. 1:47:27have some preset UI gradients in the
  2987. 1:47:29plug-in that so many front page game
  2988. 1:47:32designers use. Uh these can be used for
  2989. 1:47:34a variety of purposes. Um for example,
  2990. 1:47:37if I was to quickly go ahead and make
  2991. 1:47:39something like this, change the color to
  2992. 1:47:43here. Now, if I wanted to add a cross
  2993. 1:47:44button inside of this, right, let me
  2994. 1:47:45just quickly uh do that.
  2995. 1:47:49Now, if I wanted to turn this into a
  2996. 1:47:52close button, I would have to first uh
  2997. 1:47:56add a UI gradient.
  2998. 1:47:58And remember, you can only change the
  2999. 1:48:00colors of the UI gradients properly if
  3000. 1:48:03the color of the main frame is white.
  3001. 1:48:05So, we're going to go ahead and change
  3002. 1:48:06the color of the main frame back to
  3003. 1:48:07white. And we're going to play around
  3004. 1:48:11with the colors, see what we like. And
  3005. 1:48:13it's a whole sort of like you know
  3006. 1:48:15figuring out what the proper color
  3007. 1:48:16should be. Maybe something like this and
  3008. 1:48:18then putting it something like you know
  3009. 1:48:21something I don't know something like
  3010. 1:48:22this. It is so simple. You can just
  3011. 1:48:25click on the main frame and then click
  3012. 1:48:26on this button right here red which we
  3013. 1:48:28really like for close buttons and boom
  3014. 1:48:30it's done. And a very handy uh feature
  3015. 1:48:33in this UI gradient selection is that if
  3016. 1:48:35you were to click on different UI
  3017. 1:48:36gradients, instead of adding more UI
  3018. 1:48:39gradients and then you having to
  3019. 1:48:40manually delete the ones that you don't
  3020. 1:48:43want, you can just add a new UI gradient
  3021. 1:48:45and it's going to replace the one that
  3022. 1:48:47already exists inside of that frame. So
  3023. 1:48:49you can click on this one, this one,
  3024. 1:48:51whichever one you like, and it just
  3025. 1:48:54keeps replacing the existing one. Let me
  3026. 1:48:56just go ahead and quickly add a UI
  3027. 1:48:58stroke to it.
  3028. 1:49:00Uh we can go back to the main frame and
  3029. 1:49:02then change the gradient again.
  3030. 1:49:04Something like this perhaps cuz I like
  3031. 1:49:05that more. And yeah, it's that simple.
  3032. 1:49:07So that's Kakui and we're going to be
  3033. 1:49:09using it to import a whole UI uh in the
  3034. 1:49:12section that follows this one. So please
  3035. 1:49:14stick around guys and yeah, above all
  3036. 1:49:16have fun. So I'm going to be exporting
  3037. 1:49:19this UI that I created a while ago on my
  3038. 1:49:21YouTube. You guys can buy this UI for $5
  3039. 1:49:24only on my Gumroad. I'm just going to be
  3040. 1:49:26exporting images from this UI and then
  3041. 1:49:29we'll see how to import them into Roblox
  3042. 1:49:31Studio. I've sped up the entire process
  3043. 1:49:32so that you guys don't get bored of the
  3044. 1:49:34procedure. I also explain what I'm doing
  3045. 1:49:37throughout the sped up time lapse. So,
  3046. 1:49:39please don't mute the video and keep
  3047. 1:49:40watching.
  3048. 1:50:43So here I've just gone gone ahead and
  3049. 1:50:45separated the traits and all the icons
  3050. 1:50:47in the UI into one specific group so
  3051. 1:50:50that it's easier for me to export them
  3052. 1:51:07here. What I'm doing is what we talked
  3053. 1:51:09about earlier. You can go to the table
  3054. 1:51:11of content and jump to the topic called
  3055. 1:51:13grayscaling. I've just colored the
  3056. 1:51:15entire glow white so that I can color it
  3057. 1:51:17manually in Roblox Studio however I
  3058. 1:51:19want. Maybe black, green, blue or white
  3059. 1:51:21or anything. And I can also adjust its
  3060. 1:51:22transparency in Roblox Studio.
  3061. 1:51:39So, as you guys can see, I'm now done
  3062. 1:51:41exporting all the images. I skipped all
  3063. 1:51:43the text labels and everything else that
  3064. 1:51:45I can manually make in studio so that
  3065. 1:51:47it's more versatile and flexible. And
  3066. 1:51:49yeah, let's get into studio. All right,
  3067. 1:51:52guys. So, we're finally in studio. One
  3068. 1:51:54thing that I want you guys to focus on
  3069. 1:51:55is the fact that I changed my Roblox
  3070. 1:51:57account. So, now I'm not on my main
  3071. 1:51:59account, but on an alt account. And the
  3072. 1:52:01reasoning is because I mentioned earlier
  3073. 1:52:03in the video, if you use your main
  3074. 1:52:04account, there are chances that Roblox
  3075. 1:52:06is going to flag your UIs or images that
  3076. 1:52:08you upload on Roblox. You don't want to
  3077. 1:52:10take the chances. So, just get a new
  3078. 1:52:12account and upload UIs on that one
  3079. 1:52:14instead of your main one. So, what we're
  3080. 1:52:15going to do now is we're [music] going
  3081. 1:52:16to open asset manager and we're going to
  3082. 1:52:19come here to bulk import. We're going to
  3083. 1:52:21open bulk import and then we're going to
  3084. 1:52:23come here. Now, these are the images
  3085. 1:52:25that we uploaded from our software. Um,
  3086. 1:52:28what we're going to do is we are going
  3087. 1:52:30to press Ctrl+ A and then we're going to
  3088. 1:52:32press enter.
  3089. 1:52:34It's going to import all of them. Now,
  3090. 1:52:36as you can see, it's going to take its
  3091. 1:52:38little time to import. So, I'm going to
  3092. 1:52:39speed up this process.
  3093. 1:52:42So, now that we're done, we're going to
  3094. 1:52:44quickly come here and close the bulk
  3095. 1:52:46import menu. Now, we have all these
  3096. 1:52:48images right here. These are all the
  3097. 1:52:50images that we will be needing. So, now
  3098. 1:52:52let's get started. We're going to go to
  3099. 1:52:54starter GUI and we're going to create a
  3100. 1:52:56screen GUI. As soon as we do that, we're
  3101. 1:52:59going to enable ignore GUI insert and
  3102. 1:53:02disable reset on spawn. Now, we're going
  3103. 1:53:05to go ahead and add a frame to the
  3104. 1:53:07screen GUI. We're going to position the
  3105. 1:53:09frame in the center and fit to parent
  3106. 1:53:11size. After that, we're going to remove
  3107. 1:53:13background. And voila, this is our
  3108. 1:53:16holder frame. So, what I'm going to do
  3109. 1:53:18now is I'm going to rename it to holder
  3110. 1:53:22frame and I'm going to rename the
  3111. 1:53:23screen's UI.
  3112. 1:53:25So, now what we're going to do is we're
  3113. 1:53:27going to add the main image that we had
  3114. 1:53:29from our third party software that we
  3115. 1:53:31took uh near the end so that we can
  3116. 1:53:32follow it one to one. Uh we're going to
  3117. 1:53:34quickly go ahead and add an image label
  3118. 1:53:36to this. And we're going to center it,
  3119. 1:53:39fit to parent size, remove background.
  3120. 1:53:41And now we're going to come here, copy
  3121. 1:53:44ID to clipboard. And if we're going to
  3122. 1:53:46scroll down in image label, we're going
  3123. 1:53:48to replace the image with this. As you
  3124. 1:53:51can see, I have the image one to one
  3125. 1:53:53now. And I can easily position every
  3126. 1:53:56single UI element and object on top of
  3127. 1:53:58this image. So what we're going to do
  3128. 1:54:00now is we're going to rename this to
  3129. 1:54:02overview. And then we're going to change
  3130. 1:54:05the Z-index to something like minus 50.
  3131. 1:54:08So now this ensures that this will
  3132. 1:54:10always be beneath everything else and
  3133. 1:54:12not on top of it. So now what we're
  3134. 1:54:14going to do is if we quickly were to
  3135. 1:54:16change resolutions, you guys can see
  3136. 1:54:18that the image gets stretched and this
  3137. 1:54:20is not what we want even when we're
  3138. 1:54:22looking at the UI on different
  3139. 1:54:24resolutions. So what we're going to do
  3140. 1:54:25is we're going to go back to 1080p.
  3141. 1:54:28We're going to add a fixed aspect ratio
  3142. 1:54:29constraint to this. So now if we were to
  3143. 1:54:32quickly change the resolution back to
  3144. 1:54:33VGA, we can see that it won't cause any
  3145. 1:54:35problems. Don't worry about these
  3146. 1:54:37borders on the top and bottom. This is
  3147. 1:54:39not a full screen GUI, so that won't
  3148. 1:54:41cause any problems in the future as
  3149. 1:54:42well. We're going to go back to 1080p.
  3150. 1:54:44And now we're going to start finally
  3151. 1:54:46building our UI on top of this. The
  3152. 1:54:48first thing that we always do when we're
  3153. 1:54:49making a UI is we are [music] going to
  3154. 1:54:52center it and we're going to make a main
  3155. 1:54:56container [music] frame for the entire
  3156. 1:54:58UI so that it all stays together even
  3157. 1:55:00when we have to position it around. So
  3158. 1:55:02what we're going to do is we are going
  3159. 1:55:03to quickly remove background and we are
  3160. 1:55:06going to increase the size of this UI to
  3161. 1:55:09match the visible size that's being
  3162. 1:55:13covered by the UI that we want to make.
  3163. 1:55:16So as you can see with the shadow
  3164. 1:55:18combined it's somewhere around here.
  3165. 1:55:21And
  3166. 1:55:23on this side we can see that it's
  3167. 1:55:24somewhere around
  3168. 1:55:27here.
  3169. 1:55:30There we go. So on the technical level,
  3170. 1:55:33because of glows and everything, this
  3171. 1:55:35will still have to become a bit bigger,
  3172. 1:55:37but we can easily work our way around
  3173. 1:55:40when we're positioning everything inside
  3174. 1:55:41of this frame. So what we're going to do
  3175. 1:55:43now is we're going to rename this to
  3176. 1:55:45container frame. This is going to be our
  3177. 1:55:48container for the entire UI. Now we're
  3178. 1:55:51going to make another frame inside of
  3179. 1:55:53this. And we are going to center it
  3180. 1:55:55again. Remove background. Now we're
  3181. 1:55:58going to make the size as big as the one
  3182. 1:56:01on the left side. The anchor point is
  3183. 1:56:03going to still stay 0.5 and 0.5. You can
  3184. 1:56:06see that the entire UI is divided into
  3185. 1:56:07two parts. The left one and the right
  3186. 1:56:09one. This is going to be the main frame
  3187. 1:56:12for the left one. What we can do [music]
  3188. 1:56:14is we are going to click right here and
  3189. 1:56:18fit to parent size. So now the entire
  3190. 1:56:22frame is as big as the container frame.
  3191. 1:56:24All we have to do is we are going to
  3192. 1:56:26select this one. Uncheck position, keep
  3193. 1:56:30only anchor selected and change the
  3194. 1:56:31anchor point back to the center. So now
  3195. 1:56:34the anchor point is back to the center
  3196. 1:56:35but the position is still the same. We
  3197. 1:56:37are going to make it smaller from the
  3198. 1:56:39right side and fit it somewhere around
  3199. 1:56:42here. There we go. Now only this main
  3200. 1:56:46holder frame has been selected and we
  3201. 1:56:48can easily position all our UI elements
  3202. 1:56:51inside of this frame. We are going to
  3203. 1:56:52rename this frame to something like main
  3204. 1:56:55inventory.
  3205. 1:56:57Now we're also going to duplicate this
  3206. 1:56:58so that we can do the same thing on the
  3207. 1:57:00right side. So come back here, position
  3208. 1:57:03it to the right side and uncheck
  3209. 1:57:06position and put the anchor point in the
  3210. 1:57:08center. So now what we're going to do is
  3211. 1:57:11we are going to resize it back and make
  3212. 1:57:15it somewhere around here. There we go.
  3213. 1:57:17So this is going to be our right side.
  3214. 1:57:20We're going to come to this frame and
  3215. 1:57:22we're going to change the name to
  3216. 1:57:23something like inventory
  3217. 1:57:26details.
  3218. 1:57:28Now we have a nice little hierarchy. We
  3219. 1:57:30can see that all the values are scaled
  3220. 1:57:33and the anchor points are set so it can
  3221. 1:57:35easily be animated and scripted in the
  3222. 1:57:37future. The next step that we're going
  3223. 1:57:38to do is we are going to make it easier
  3224. 1:57:41for ourselves to contrast or compare
  3225. 1:57:44between both of our overview image
  3226. 1:57:46labels and what we're currently doing.
  3227. 1:57:48So, we are going to quickly come here to
  3228. 1:57:50this image label that we had and we're
  3229. 1:57:51going to change the transparency from
  3230. 1:57:53zero to something like 0.6.
  3231. 1:57:56I'm going to change the camera to make
  3232. 1:57:57it easier for myself to import. We are
  3233. 1:57:59going to start adding our images into
  3234. 1:58:02our UI. So, the first thing that I'll be
  3235. 1:58:04adding is the header. I'm going to make
  3236. 1:58:06an image label since the header does not
  3237. 1:58:08have to be a button or anything. It's
  3238. 1:58:10going to be an image label. And we are
  3239. 1:58:11going to uh change the anchor point to
  3240. 1:58:13the center. Something like this. And now
  3241. 1:58:16we're going to size it to the size of
  3242. 1:58:19the header that we have somewhere here.
  3243. 1:58:25There we go. We're going to remove
  3244. 1:58:27background. And we're going [music] to
  3245. 1:58:29come here, look for our header. That's
  3246. 1:58:32our header. And we are going to quickly
  3247. 1:58:34copy ID to clipboard and paste it right
  3248. 1:58:36here.
  3249. 1:58:38As you guys can see, it changed to the
  3250. 1:58:40header. And now I'm going to change the
  3251. 1:58:42scale type from stretch to fit to keep
  3252. 1:58:44the absolute proportions. And we are now
  3253. 1:58:48going to manually place the headers.
  3254. 1:58:49[music] It is recommended when you're
  3255. 1:58:51doing this that you hold shift left
  3256. 1:58:53shift on your keyboard while you're
  3257. 1:58:55positioning it around so that you can
  3258. 1:58:57easily resize it without losing
  3259. 1:58:59proportions.
  3260. 1:59:01And there we go. That looks pretty
  3261. 1:59:02similar to me.
  3262. 1:59:04As we can see, it is quite similar. So
  3263. 1:59:06now we're going to come here and we are
  3264. 1:59:08going to call it the header. Inside
  3265. 1:59:11this header, as we can see in the
  3266. 1:59:13original photo, we have some text. What
  3267. 1:59:15we're going to do now is we are going to
  3268. 1:59:17make a text label inside of it.
  3269. 1:59:20And we're going to center it,
  3270. 1:59:23remove background, make it a bit bigger.
  3271. 1:59:26Enable [music] text scaled. And we are
  3272. 1:59:30going to resize it and call it
  3273. 1:59:34inventory.
  3274. 1:59:36And also here something like actually
  3275. 1:59:39here we're going to say header text for
  3276. 1:59:42easy hierarchy.
  3277. 1:59:45Um we're going to position it as it's
  3278. 1:59:47meant to be positioned. Let's change the
  3279. 1:59:49zindex of overview from minus 50 to 50
  3280. 1:59:52for now. And as we can see we won't be
  3281. 1:59:55able to select this easily now. What
  3282. 1:59:57we'll have to do is we'll have to click
  3283. 1:59:59on it right here. So now we're going to
  3284. 2:00:01position it the way we want it to be
  3285. 2:00:03positioned. Something like this. We're
  3286. 2:00:05going to change the font to what we
  3287. 2:00:07used, which is Fredoka one. And I'm
  3288. 2:00:11going to keep matching it until it
  3289. 2:00:13becomes the same.
  3290. 2:00:15So, something like that seems pretty
  3291. 2:00:18satisfactory to me. Something like that.
  3292. 2:00:21We're going to make some quick
  3293. 2:00:22adjustments right here in case anything
  3294. 2:00:24needs to be fixed. There we go. That
  3295. 2:00:27seems perfect. We can also see that the
  3296. 2:00:29text in our UI had a little stroke to
  3297. 2:00:32it. So, what we're going to do is we are
  3298. 2:00:34going to make it visible again and we're
  3299. 2:00:36going to add a UI stroke to it.
  3300. 2:00:40Now that we added the stroke, we're
  3301. 2:00:41going to change the color to white and
  3302. 2:00:44we're going to change the transparency
  3303. 2:00:45of the UI stroke to something like 0.5.
  3304. 2:00:48And then we're going to scale the UI
  3305. 2:00:51stroke after changing the thickness to
  3306. 2:00:52something like four. Hold on, let me
  3307. 2:00:55change this back to minus 50.
  3308. 2:00:58We're going to change the fix size to
  3309. 2:01:01something like five maybe
  3310. 2:01:04five looks pretty nice to me. And then
  3311. 2:01:06we're going to scale the UI stroke.
  3312. 2:01:10So as you can see this is now scaled.
  3313. 2:01:13The text the text sizing needs to be
  3314. 2:01:15scaled. So we're going to come here,
  3315. 2:01:17select size, and then click on scale. So
  3316. 2:01:20the text size is now also scaled. The
  3317. 2:01:22header size needs to be scaled. So we're
  3318. 2:01:24going to do that real quick. And that's
  3319. 2:01:26scaled. Now, one main thing that we
  3320. 2:01:28forgot to do is we have to add an aspect
  3321. 2:01:31ratio constraint to the main container
  3322. 2:01:33frame. So, we're going to do that real
  3323. 2:01:34fast. We can also see that the size I
  3324. 2:01:36forgot to scale that. So, we're going to
  3325. 2:01:38scale the size real quick. And then
  3326. 2:01:39we're going to add an aspect ratio
  3327. 2:01:40constraint. So, now the main container
  3328. 2:01:42frame has the aspect ratio constraint.
  3329. 2:01:44You don't you never add the aspect ratio
  3330. 2:01:46constraint to the holder frame because
  3331. 2:01:47that's meant to scale the UI to your
  3332. 2:01:50entire screen size. If you select both
  3333. 2:01:53of these, inventory details is already
  3334. 2:01:54scaled. This UI so far should not have
  3335. 2:01:57any problems if we were to go ahead and
  3336. 2:02:00change the screen resolution.
  3337. 2:02:02As you can see, everything is perfectly
  3338. 2:02:04scaled so far. So, we're going to go
  3339. 2:02:06back and continue the UI. Since we can
  3340. 2:02:08visibly see, we can make it out that our
  3341. 2:02:10header is going to cover everything else
  3342. 2:02:12in our UI. So, we're going to come to
  3343. 2:02:14the header and change the Z-index to
  3344. 2:02:16something like 10. Now, we're going to
  3345. 2:02:19add the holder frame beneath everything
  3346. 2:02:20that's meant to hold everything
  3347. 2:02:22together. We're going to go here and
  3348. 2:02:23we're going to click on image label.
  3349. 2:02:25We're going to center it and then we're
  3350. 2:02:27going to click on holder. Right click
  3351. 2:02:30and then change [music] the ID of the
  3352. 2:02:32image label into what we just copied.
  3353. 2:02:36As you can see, we got the holder right
  3354. 2:02:37here. We're going to remove background.
  3355. 2:02:39We're going to click on fit to parent
  3356. 2:02:41size. [music] And now we're going to
  3357. 2:02:42manually resize it until we find the
  3358. 2:02:45proper size.
  3359. 2:02:47And then we're going to change the scale
  3360. 2:02:49type to fit. And now we're going to do
  3361. 2:02:50it again. Always make sure that you use
  3362. 2:02:52the scale type as fit before anything so
  3363. 2:02:55you don't have to go back once you're
  3364. 2:02:57done.
  3365. 2:03:00As we can see now, I have the main
  3366. 2:03:02background for the entire frame right
  3367. 2:03:04here. So, what we're going to do is we
  3368. 2:03:06are going to change the name of this to
  3369. 2:03:08background. We're going to put the
  3370. 2:03:09Z-index of this background since it's
  3371. 2:03:11going to be beneath everything to minus
  3372. 2:03:1310. And next up, we're going to add the
  3373. 2:03:14close button. I'm going to make an image
  3374. 2:03:16label again as we did before. Center it.
  3375. 2:03:18Remove background. We're going to come
  3376. 2:03:20here, search for the close button right
  3377. 2:03:23here, right click, copy ID to clipboard,
  3378. 2:03:25replace the ID, and there we have it.
  3379. 2:03:28I'm going to change the scale type to
  3380. 2:03:29fit, and then I'm going to resize it.
  3381. 2:03:32And now I'm going to manually position
  3382. 2:03:33it where it needs to be positioned.
  3383. 2:03:36So, what we're going to do again, we're
  3384. 2:03:37going to make the overview bigger
  3385. 2:03:40quickly. See if it's proper, visible,
  3386. 2:03:42and unvisible. It looks pretty nice to
  3387. 2:03:45me. Now, we're going to start making
  3388. 2:03:47everything else. We're going to go to
  3389. 2:03:49main inventory and we're going to make a
  3390. 2:03:52frame. The frame is supposed to
  3391. 2:03:54replicate this search bar. So that's
  3392. 2:03:55what we're going to do. We are going to
  3393. 2:03:57center it and then we're going to change
  3394. 2:04:00the position to something like 0.35 0 32
  3395. 2:04:050.3.
  3396. 2:04:06Remember you can't select it on the
  3397. 2:04:08screen because you have made the
  3398. 2:04:11overview frame much higher in Z-index.
  3399. 2:04:14So we're going to change the position to
  3400. 2:04:16somewhere here.
  3401. 2:04:19Now, we're going to resize it manually.
  3402. 2:04:21What we're going to do now is we are
  3403. 2:04:23going to scale the size, scale the
  3404. 2:04:26position,
  3405. 2:04:28and we're going to add a corner to it.
  3406. 2:04:32We're going to change the corner to 0.1.
  3407. 2:04:35It's already scaled, so we won't have to
  3408. 2:04:36scale it since we're dealing in scaled
  3409. 2:04:39values. Probably something like 0.15.
  3410. 2:04:42There we go. We're going to change the
  3411. 2:04:44frame color to pure black since that's
  3412. 2:04:46what's in the UI. And now we're going to
  3413. 2:04:48add a UI stroke to it. In order to get
  3414. 2:04:50the proper stroke color, what we can
  3415. 2:04:52easily do is we are going to quickly
  3416. 2:04:54click on overview. We're going to change
  3417. 2:04:56the image transparency back to zero. So
  3418. 2:04:58it's the normal image that we had. We're
  3419. 2:05:00going to go back to UI stroke and we're
  3420. 2:05:03going to click on color in this option.
  3421. 2:05:06Now you can see we have an options
  3422. 2:05:08called pick screen color. We're going to
  3423. 2:05:10select that and then we're going to move
  3424. 2:05:12our mouse precisely on the point that we
  3425. 2:05:14think is the color. You can see on the
  3426. 2:05:17right side that the color is jumping
  3427. 2:05:19from here which is almost black to this
  3428. 2:05:21one which is sort of like bluish
  3429. 2:05:24purplish. This one is the only bright
  3430. 2:05:26color that I can find this one. So we're
  3431. 2:05:29going to select this and that's going to
  3432. 2:05:31be our stroke color.
  3433. 2:05:33So if we go back and quickly hide this
  3434. 2:05:37back to 0.5
  3435. 2:05:39[snorts] and perhaps make it invisible
  3436. 2:05:41just to see.
  3437. 2:05:44Oh, the US stroke needs to be a bit
  3438. 2:05:45thicker. Something like three, four or
  3439. 2:05:49three. So as you can see now we have the
  3440. 2:05:51UI stroke which is the same color as the
  3441. 2:05:53one that we had in our uh UI. What we're
  3442. 2:05:56going to do now is we are going to scale
  3443. 2:05:57the thickness really fast with my
  3444. 2:05:59plug-in. Click on scale and we have the
  3445. 2:06:02scale UI stroke. We're going to make the
  3446. 2:06:05overview visible again with the
  3447. 2:06:07transparency lowered and we're going to
  3448. 2:06:09start doing everything else. So we're
  3449. 2:06:11going to come back here in our frame.
  3450. 2:06:14We're going to call this the search bar
  3451. 2:06:17and we're going to add a image label
  3452. 2:06:19inside of it. This is going to be our
  3453. 2:06:21search icon. Center it. Remove
  3454. 2:06:23background. Uh quickly change the value
  3455. 2:06:26to something like 30, 30, maybe 50, 50.
  3456. 2:06:29and we're going to scale the size.
  3457. 2:06:33As soon as we're done with that, we're
  3458. 2:06:34going to come to the asset manager and
  3459. 2:06:36we're going to look for the search icon.
  3460. 2:06:38We have this right here. Copy ID. Paste
  3461. 2:06:41the ID. And voila, we have it. So, we're
  3462. 2:06:44going to make it a bit more smaller.
  3463. 2:06:47And now we're going to move it around
  3464. 2:06:48with the values. You have to get used to
  3465. 2:06:50moving stuff around with the values.
  3466. 2:06:53It's not easy to move it around with the
  3467. 2:06:56screen because it's always going to mess
  3468. 2:06:58up the resolution. Let's put it at
  3469. 2:07:00something like 0.08 maybe.
  3470. 2:07:08Now it should be okay. If you were to
  3471. 2:07:10quickly change the transparency from 0.5
  3472. 2:07:12to zero, it's almost the same. We're
  3473. 2:07:15going to fix the transparency and it
  3474. 2:07:16should be fine. Let's quickly go back to
  3475. 2:07:19the image label. We're going to call
  3476. 2:07:21this the search icon just for easy
  3477. 2:07:23navigation. I change the transparency to
  3478. 2:07:26something like 0.5 0.6 maybe scale type
  3479. 2:07:30to fit.
  3480. 2:07:35And that's the same. So what we're going
  3481. 2:07:36to do now is we're going to make it
  3482. 2:07:37visible again and lower the image
  3483. 2:07:40transparency or increase it sorry to
  3484. 2:07:42something like 0.5. And now we're going
  3485. 2:07:44to make this text box.
  3486. 2:07:46Come here. Make a text box.
  3487. 2:07:50Put it somewhere in the center. Remove
  3488. 2:07:52background. Enable text scaled. Make the
  3489. 2:07:55size something like this.
  3490. 2:07:59And on this side, we're going to make it
  3491. 2:08:01something like this. We won't have to
  3492. 2:08:03worry about the header overlapping with
  3493. 2:08:04it because the header is on top of it.
  3494. 2:08:06Speaking in terms of zindex. So that
  3495. 2:08:08won't be the problem. We're going to
  3496. 2:08:10come here. We're going to change the
  3497. 2:08:12font to Monerat extra bold, which was
  3498. 2:08:14our font for the entire thing.
  3499. 2:08:181 weightight is going to be extra bold.
  3500. 2:08:21Text color is going to be white and text
  3501. 2:08:24transparency is going to become
  3502. 2:08:26something like 0.5.
  3503. 2:08:28So now if we were to change the
  3504. 2:08:30placeholder text, let's call it search.
  3505. 2:08:34We can see that it popped up which
  3506. 2:08:35almost looks the same. So we're going to
  3507. 2:08:38quickly change the text X alignment to
  3508. 2:08:40left and it's almost the same. What
  3509. 2:08:42we're going to do now is we are going to
  3510. 2:08:45lower the size of on the Y-axis
  3511. 2:08:49and match it to the search. There we go.
  3512. 2:08:52That's pretty much the same. So, we just
  3513. 2:08:54hit the nail. And what we're going to do
  3514. 2:08:56now is we are going to quickly hide the
  3515. 2:09:00overview and we're going to just play
  3516. 2:09:02around with our UI and make it look a
  3517. 2:09:04bit nicer.
  3518. 2:09:07So, now it looks pretty consistent. This
  3519. 2:09:09looks nice and we can also change it as
  3520. 2:09:11we go. So this is how we make it
  3521. 2:09:14functional. So we can see that a bit of
  3522. 2:09:16stuff here and there like text box um
  3523. 2:09:19hasn't been scaled. Search icon we
  3524. 2:09:21forgot to scale. So in order to skip all
  3525. 2:09:24of this stuff I'm just going to click on
  3526. 2:09:25search bar and then ultra scale. Now
  3527. 2:09:27everything inside of it should be scaled
  3528. 2:09:29which is why this feature is so good.
  3529. 2:09:31You can just quickly scale everything
  3530. 2:09:32without having to worry about any
  3531. 2:09:34specific thing. We're going to click on
  3532. 2:09:36our close button and we are going to
  3533. 2:09:38rename it by pressing F2 to something
  3534. 2:09:41like close button. One thing that I
  3535. 2:09:44forgot to mention is that I've made a
  3536. 2:09:46mistake and it's the fact that the close
  3537. 2:09:49button cannot be an image label. It has
  3538. 2:09:52to be a button. So now there's three
  3539. 2:09:54ways to fix this. You can either
  3540. 2:09:55recclass this image label into an image
  3541. 2:09:57button. You can either add a new image
  3542. 2:09:59button inside of this image label. Or
  3543. 2:10:01the third way, which I'm going to go
  3544. 2:10:02with, you can make an image button and
  3545. 2:10:05then add this label inside of that. Why
  3546. 2:10:08that's the best option is because if
  3547. 2:10:10[music] we have the image button, we can
  3548. 2:10:12easily animate it. And we can also
  3549. 2:10:14easily modify the size of the icon
  3550. 2:10:16inside of it. So, let's go ahead and do
  3551. 2:10:17it. What I'm going to do is I'm going to
  3552. 2:10:19duplicate it and I'm going to reclass
  3553. 2:10:21this into an image button. And then I'm
  3554. 2:10:24going to remove the image from this
  3555. 2:10:26image button. And then I'm going to
  3556. 2:10:29offset this entire thing. Size and
  3557. 2:10:33position.
  3558. 2:10:35Going to put it inside of this [music]
  3559. 2:10:37image button. And then I'm going to
  3560. 2:10:39center it. As you can see, we have the
  3561. 2:10:41same thing that we did before. Uh the
  3562. 2:10:44size of the image button is the same as
  3563. 2:10:45the uh image label. What we're going to
  3564. 2:10:48do is we're going to call this texture.
  3565. 2:10:49So now what we have to do is we have to
  3566. 2:10:51make sure that the button is small. We
  3567. 2:10:53don't want the player to move their
  3568. 2:10:54mouse here and be able to click the
  3569. 2:10:56button since the image button is this
  3570. 2:10:58big. So what we're going to do is we are
  3571. 2:11:00going to come here. As you can see the
  3572. 2:11:01size is 216 by 216. We can put something
  3573. 2:11:05like 100 which is pretty nice but I'm
  3574. 2:11:08going to make it a bit bigger. Something
  3575. 2:11:10like 120 maybe 126 maybe. This is pretty
  3576. 2:11:14satisfactory. So now what we're going to
  3577. 2:11:16do is we are going to scale everything.
  3578. 2:11:18Just click on ultra scale and it should
  3579. 2:11:19be done. I'm going to move my camera up
  3580. 2:11:21a bit more because that looks a bit too
  3581. 2:11:23dark for me. I'm going to put it
  3582. 2:11:25somewhere like here perhaps. Now, what
  3583. 2:11:28we're going to do is we are going to
  3584. 2:11:30make the filter buttons that were next
  3585. 2:11:32to the search bar. I'm going to quickly
  3586. 2:11:34make the overview visible again. We can
  3587. 2:11:37see that we have these two buttons right
  3588. 2:11:39here. That's what we're going to do. So,
  3589. 2:11:40we're going to collapse all of this
  3590. 2:11:42stuff. And then in the main inventory,
  3591. 2:11:44we're going to add a frame. We're going
  3592. 2:11:47to put the frame in the center again.
  3593. 2:11:49Same thing that we did before. I'm going
  3594. 2:11:52to position it somewhere here.
  3595. 2:11:57So, what I want to do now is I want to
  3596. 2:11:58add a UI list layout inside this main
  3597. 2:12:01frame. So, we are going to quickly
  3598. 2:12:03change this to the physical size so that
  3599. 2:12:05we can position it a bit better.
  3600. 2:12:07So, that looks pretty nice to me. What
  3601. 2:12:09we're going to do now is we are going to
  3602. 2:12:10go back to fit window and we are going
  3603. 2:12:15to hide the background. Now we can add a
  3604. 2:12:19UI list layout inside of this.
  3605. 2:12:22Fill direction is going to be horizontal
  3606. 2:12:24and the horizontal alignment is going to
  3607. 2:12:27stay to left and the vertical alignment
  3608. 2:12:29is going to be changed to the center.
  3609. 2:12:31We're going to quickly go ahead and add
  3610. 2:12:32two image buttons inside of this image
  3611. 2:12:35button. Remove background. What I'm
  3612. 2:12:38going to do now is I'm going to put the
  3613. 2:12:39position to the center. You can't really
  3614. 2:12:41change the position in a UI list layout
  3615. 2:12:43cuz that manages everything. But what
  3616. 2:12:45we're going to do now is we are going to
  3617. 2:12:46make it a bit smaller.
  3618. 2:12:49Something like this. And we are going to
  3619. 2:12:53add the texture inside of it. The same
  3620. 2:12:55thing that we did with the close button.
  3621. 2:12:57So we're going to press the plus button.
  3622. 2:12:58We're going to add an image label. We're
  3623. 2:13:00going to put it in the center. Remove
  3624. 2:13:02background fit to parent size. And we're
  3625. 2:13:05going to copy paste this uh ID into this
  3626. 2:13:09one. So there we go. It's the same
  3627. 2:13:11thing. Now we can see that it's pretty
  3628. 2:13:14much the same. The next thing that we're
  3629. 2:13:16going to do is rename this into texture.
  3630. 2:13:18Uh we're going to add another image
  3631. 2:13:20label below this one. We're going to
  3632. 2:13:22center it. Remove background. And this
  3633. 2:13:24one is going to be the glow that we had
  3634. 2:13:27earlier. I also forgot to mention that
  3635. 2:13:29we're going to change all the scale
  3636. 2:13:30types to fit instead of stretch.
  3637. 2:13:35There we go.
  3638. 2:13:37This is also going to change to fit. And
  3639. 2:13:39then we're going to copy the glow and
  3640. 2:13:41put it in the image.
  3641. 2:13:44Now we're going to change the z-index
  3642. 2:13:46because we can see that it's overlapping
  3643. 2:13:47and we don't want any overlapping to
  3644. 2:13:49exist. So we're going to come to the
  3645. 2:13:51z-index and change that to minus one.
  3646. 2:13:53One thing that we forgot to do is we
  3647. 2:13:55forgot to make the button image
  3648. 2:13:57transparency to one. So we're going to
  3649. 2:13:59quickly go here and change the button
  3650. 2:14:01transparency to one. And now we can see
  3651. 2:14:02that the corners are fine. Now this is a
  3652. 2:14:05proper button. And you can see that it
  3653. 2:14:07only becomes that clickable icon when
  3654. 2:14:09you move your mouse on top of it. So now
  3655. 2:14:12what we're going to do is we are going
  3656. 2:14:13to duplicate this. Same thing. And we're
  3657. 2:14:15going to change the ID from the filter
  3658. 2:14:18button to the lock button. So we're
  3659. 2:14:19going to expand this. And then we're
  3660. 2:14:21going to paste this here. There we go.
  3661. 2:14:24We're going to change the padding a bit
  3662. 2:14:26to 0.1.2
  3663. 2:14:29maybe. No, 0.1.08
  3664. 2:14:33somewhere there. We're going to enable
  3665. 2:14:35overview to see what it should be. And
  3666. 2:14:37yeah, looks pretty similar to me now. So
  3667. 2:14:39that's pretty nice. So now what we're
  3668. 2:14:41going to do is we're going to quickly
  3669. 2:14:42rename these. Change the name of this to
  3670. 2:14:44filter button and change the name of
  3671. 2:14:47this one to lock button. We're going to
  3672. 2:14:50select the main frame.
  3673. 2:14:52And now we're going to move the position
  3674. 2:14:54slightly higher
  3675. 2:14:57just to position it a bit better. I
  3676. 2:14:59really like this. So I'm going to stick
  3677. 2:15:01with this one. uh make sure that for
  3678. 2:15:03this uh buttons and everything you did
  3679. 2:15:06not have clip descendants enabled. If
  3680. 2:15:09you enable them, it's going to cause a
  3681. 2:15:11lot of problems with the edges and
  3682. 2:15:12whatnot, and you don't want that. So,
  3683. 2:15:14now that that's done, we're going to
  3684. 2:15:15come back here, call this something like
  3685. 2:15:17the extra buttons. We have an issue
  3686. 2:15:19here. We can see that the size is not
  3687. 2:15:21scaled, and maybe we forgot something
  3688. 2:15:22else. We're just going to click on ultra
  3689. 2:15:24scale, and everything should be scaled
  3690. 2:15:26instantly. We click on overview, and we
  3691. 2:15:28need to add the unit capacity right
  3692. 2:15:31here. So, we're going to do that right
  3693. 2:15:32now. Hide that again. And then come
  3694. 2:15:34here. Add a text label. Put it in the
  3695. 2:15:38center. Remove background. Enable text
  3696. 2:15:40scale. Make the size a bit bigger. And
  3697. 2:15:44what we're going to do now is we're
  3698. 2:15:45going to change the color to white so
  3699. 2:15:48that we can easily read it. We're going
  3700. 2:15:50to change the text to moneterate. Change
  3701. 2:15:52the weight to extra bold. And then we're
  3702. 2:15:56going to see what we had in the
  3703. 2:15:58overview.
  3704. 2:16:00we had 49x 100. So we're going to
  3705. 2:16:02quickly change it to 49 by 100 as well.
  3706. 2:16:05Now we are going to position it
  3707. 2:16:07somewhere here and we are going to make
  3708. 2:16:10the size a bit smaller.
  3709. 2:16:12So now it should be pretty much the
  3710. 2:16:14same. As we can see we nailed
  3711. 2:16:16everything.
  3712. 2:16:19So we're just going to copy the colors
  3713. 2:16:20again. Uh for this part we have to
  3714. 2:16:23enable uh go to text label. So, what
  3715. 2:16:25we're going to do now is we're going to
  3716. 2:16:27quickly enable rich text because we want
  3717. 2:16:29to color the text differently on both
  3718. 2:16:30sides. Copy the color that we had on the
  3719. 2:16:33right side. Um, we're going to first
  3720. 2:16:35make the overview visible again. We're
  3721. 2:16:38going to change the transparency to
  3722. 2:16:39zero. And we're going to come here,
  3723. 2:16:41click on the text label even though we
  3724. 2:16:43can't see it. Uh, we're going to click
  3725. 2:16:45on text color. Pick screen color by
  3726. 2:16:48moving uh this to the right. And we're
  3727. 2:16:52going to go for the perfect color. You
  3728. 2:16:53can see it's making some variations here
  3729. 2:16:55and there. Just go for the one that
  3730. 2:16:57you're most satisfied with. I'm most
  3731. 2:16:59satisfied with this one. So, as we can
  3732. 2:17:03see, the hex is this. We're going to
  3733. 2:17:06quickly select that. And okay. And then
  3734. 2:17:08we're going to control Z it cuz we don't
  3735. 2:17:10want to put the main text color as that
  3736. 2:17:12one. Hide the overview again.
  3737. 2:17:16Go back to the text label. And in rich
  3738. 2:17:18text uh we have this property where we
  3739. 2:17:22can put a custom hex color uh in the
  3740. 2:17:25text label. So the syntax is as follows.
  3741. 2:17:30Font space color is equal to quoted
  3742. 2:17:34marks # the value and then quoted marks
  3743. 2:17:39and then close the bracket. And then
  3744. 2:17:42here we are going to say open bracket
  3745. 2:17:46slash font close bracket. If we enter we
  3746. 2:17:50can see that it quickly copy pasteed the
  3747. 2:17:52exact same thing that we had earlier and
  3748. 2:17:54it works perfectly fine. So we're going
  3749. 2:17:56to quickly uh come and scale the size
  3750. 2:17:59and then we're going to change this to
  3751. 2:18:00something like opacity and leave it
  3752. 2:18:03there. So, next up, I'm going to go back
  3753. 2:18:06to the overview and make it visible.
  3754. 2:18:09And then I'm going to lower the increase
  3755. 2:18:11the image transparency to 0.5. We're
  3756. 2:18:13going to see what's missing. I think I
  3757. 2:18:15need to create this holder now. So,
  3758. 2:18:19that's what we're going to do. We are
  3759. 2:18:21going to hide this real fast. We're
  3760. 2:18:24going to come back, duplicate the search
  3761. 2:18:26bar, center it, and we're going to
  3762. 2:18:29delete everything inside of it. The text
  3763. 2:18:32box and search icon. We're going to keep
  3764. 2:18:33these two. And then we're going to size
  3765. 2:18:36it.
  3766. 2:18:37We're going to click on UI corner. We're
  3767. 2:18:40going to do something like 0.05,
  3768. 2:18:45maybe 0.04.
  3769. 2:18:47And then we're going to lower this uh
  3770. 2:18:49stroke of the UI stroke to fixed size
  3771. 2:18:54three. There we go. Now, I think it
  3772. 2:18:56needs to be made a bit more sharper. So,
  3773. 2:18:59it's going to put it something like
  3774. 2:19:000.03. I like this.
  3775. 2:19:03So now what we're going to do is we're
  3776. 2:19:04going to call this holder
  3777. 2:19:06and we're going to make overview visible
  3778. 2:19:09again and we're going to see the
  3779. 2:19:11positions. So we can see that it needs
  3780. 2:19:13to be lowered a bit more and made a bit
  3781. 2:19:15taller. So that's what we're going to
  3782. 2:19:17do. We're going to quickly select the
  3783. 2:19:19holder and we're going to make it
  3784. 2:19:23somewhere here and then we're going to
  3785. 2:19:25make it a bit taller here so that we can
  3786. 2:19:28increase size on both axis on both ends.
  3787. 2:19:31Sorry. There we go. I really like this.
  3788. 2:19:34So now what we're going to do is we are
  3789. 2:19:37going to quickly hide the overview and
  3790. 2:19:41we're going to go back to our holder
  3791. 2:19:44frame. We're going to change the name to
  3792. 2:19:45units holder.
  3793. 2:19:47And then we are going to ultra scale the
  3794. 2:19:52main thing.
  3795. 2:19:54There we go. So now everything should be
  3796. 2:19:56scaled. Yep. Now what we're going to do
  3797. 2:19:59is we are going to add a scrolling frame
  3798. 2:20:00inside of this
  3799. 2:20:03scrolling frame. Center it fit to parent
  3800. 2:20:06size. Remove background. And then we are
  3801. 2:20:08going to go back to the overview. Make
  3802. 2:20:11it visible again. Um we are going to
  3803. 2:20:14change the image transparency to zero.
  3804. 2:20:16So we can pick the color of the
  3805. 2:20:17scrolling bar. And then we're going to
  3806. 2:20:20come here, scroll down, scrolling bar,
  3807. 2:20:22image color. We're going to select this,
  3808. 2:20:23pick screen color. And then we are going
  3809. 2:20:26to this won't work because the scrolling
  3810. 2:20:30bar image transparency is 0.5 preset. So
  3811. 2:20:34we need to go for something brighter so
  3812. 2:20:36that even if it's 0.5 in the back end,
  3813. 2:20:39it will still look the same. So we're
  3814. 2:20:40going to select something like this.
  3815. 2:20:43Make it a bit vibrant. And now if we
  3816. 2:20:46quickly hit the overview, we can see
  3817. 2:20:49that it would
  3818. 2:20:51largely look the same. We have to
  3819. 2:20:55do some stuff real fast. What I'm going
  3820. 2:20:57to do is I'm going to make the size
  3821. 2:21:01something like 0 some 0.98
  3822. 2:21:05and then the Y size 0.98 as well. 0.96
  3823. 2:21:10maybe. So now I'm going to go to the
  3824. 2:21:11scrolling bar transparency and I'm going
  3825. 2:21:14to make get something like
  3826. 2:21:19something like this.
  3827. 2:21:21Maybe make it a bit thinner.
  3828. 2:21:24So something like
  3829. 2:21:28nine. And then this looks pretty nice.
  3830. 2:21:32So now what we're going to do is we are
  3831. 2:21:34going to quickly scale this. Click on
  3832. 2:21:35ultra scale. Everything should be done.
  3833. 2:21:37So what we're going to do next is we are
  3834. 2:21:39going to add a UI grid layout inside of
  3835. 2:21:41this.
  3836. 2:21:45So what we're going to do now is we are
  3837. 2:21:46going to quickly go ahead and add frames
  3838. 2:21:48inside of this. So, let's go and add
  3839. 2:21:50some frames. Let's duplicate these five
  3840. 2:21:52times cuz the row in our frames in our
  3841. 2:21:55original UI had five in one row. Um,
  3842. 2:22:00let's go ahead and give it a size of
  3843. 2:22:01like 150 maybe. That looks pretty nice.
  3844. 2:22:04Let's give it something like 0.2.1.
  3845. 2:22:11That looks pretty nice. So, what we're
  3846. 2:22:13going to do now is let's quickly
  3847. 2:22:14duplicate these five frames this many
  3848. 2:22:16times. And we can see that it looks
  3849. 2:22:18pretty good. Um, we should probably try
  3850. 2:22:21to make it a bit more uh equal on the Y
  3851. 2:22:24and X axis.
  3852. 2:22:28Okay, these are my final values. I
  3853. 2:22:29really like them. So, what we're going
  3854. 2:22:31to do now is we're going to go into the
  3855. 2:22:32properties of the scrolling frame. Let's
  3856. 2:22:34scroll down and find automatic canvas
  3857. 2:22:37size. Click on this and then click Y.
  3858. 2:22:40What this basically does is it's going
  3859. 2:22:42to scale the space inside of the
  3860. 2:22:44scrolling frame in relation to what's
  3861. 2:22:46present inside of it. like if we have
  3862. 2:22:49this many uh bars, it's only going to be
  3863. 2:22:52this big. So, as we can see right now,
  3864. 2:22:54it's not that big. We're going to fix
  3865. 2:22:55that issue. This is because we have this
  3866. 2:22:57set to two. If we quickly go and set
  3867. 2:22:59this to zero, we can see that it's all
  3868. 2:23:01fixed now. And we are going to add more
  3869. 2:23:03padding on the cells. So, we're going to
  3870. 2:23:06quickly click on this. Something like
  3871. 2:23:080.04,
  3872. 2:23:100.08.
  3873. 2:23:12Nope, that's too much. 0.06.
  3874. 2:23:15This is nice. So, this is what we like.
  3875. 2:23:17And these are all very nice squares that
  3876. 2:23:19we have. Now, um, one thing that we want
  3877. 2:23:22to do is that the entire, uh, gap that
  3878. 2:23:26we have around the entire thing is very
  3879. 2:23:28tight, and that's not what we want. So,
  3880. 2:23:30we're going to quickly fix this. Um,
  3881. 2:23:32we'll have to do some minor adjustments
  3882. 2:23:34here and there. We'll have to make the
  3883. 2:23:35entire scrolling frame a bit smaller.
  3884. 2:23:40So, now what we're going to do is we are
  3885. 2:23:42going to delete all our extra frames and
  3886. 2:23:43we are going to decorate only one frame
  3887. 2:23:45and then replace that the stuff inside
  3888. 2:23:48of that frame with the stuff that we
  3889. 2:23:50need. So, if we were to quickly enable
  3890. 2:23:53overview. So, as we can see, I made a
  3891. 2:23:54small issue that I'm going to fix real
  3892. 2:23:56fast. The original frame actually had
  3893. 2:23:58six squares in a row, not five. And that
  3894. 2:24:01messed up my entire orientation. So, I'm
  3895. 2:24:04quickly going to fix that. And I'm going
  3896. 2:24:05to speed that bit up. So, rest assured.
  3897. 2:24:14And I'm done. So, we're going to quickly
  3898. 2:24:16enable overview again and see how I did
  3899. 2:24:18it.
  3900. 2:24:19And there we go. It looks pretty much
  3901. 2:24:21the same. So, now I'm going to quickly
  3902. 2:24:23delete all the extra frames. And then
  3903. 2:24:25I'm going to uh add the stuff that needs
  3904. 2:24:28to be added.
  3905. 2:24:31So, what we're going to do now is we're
  3906. 2:24:32going to quickly call this unit and we
  3907. 2:24:35are going to go inside it and add an
  3908. 2:24:37image label. We're going to put this in
  3909. 2:24:39the center. Fit to parent size. Remove
  3910. 2:24:41background. We're also going to remove
  3911. 2:24:42the background of the main unit.
  3912. 2:24:44uh frame. So, we're going to click on
  3913. 2:24:46remove background. And there we go. One
  3914. 2:24:48thing that we should remember, as I've
  3915. 2:24:50mentioned before, is we're going to keep
  3916. 2:24:51the anchor point to the center to avoid
  3917. 2:24:54uh any issues popping up in the
  3918. 2:24:55animation process. So, what we're going
  3919. 2:24:57to do now is we are going to quickly add
  3920. 2:24:59the background of the card to it. So, in
  3921. 2:25:01this case, I think we had the red card
  3922. 2:25:03on the top. We're going to copy the ID
  3923. 2:25:05and then we're going to put it here.
  3924. 2:25:07So, that's our background for the card.
  3925. 2:25:09Um, let's quickly go and put the Z-index
  3926. 2:25:12of this to zero cuz this is sort of
  3927. 2:25:15going to be in the in the bottom apart
  3928. 2:25:17from the glows and everything. And so,
  3929. 2:25:19yeah, let's call this the card
  3930. 2:25:22BG. Now, what we're going to do is we
  3931. 2:25:24are going to add a viewport frame on top
  3932. 2:25:26of that. So, we're not going to be
  3933. 2:25:28adding a PNG because in the actual game,
  3934. 2:25:31they're going to use a viewport frame
  3935. 2:25:33and not a PNG. I've explained what
  3936. 2:25:34viewport frames are earlier in the
  3937. 2:25:36video, so please go and check that bit
  3938. 2:25:37out. So let's quickly go and center this
  3939. 2:25:39viewport frame. Um we are going to scale
  3940. 2:25:43the size of this viewport frame. And
  3941. 2:25:44then it's always good practice to make
  3942. 2:25:47it slightly bigger than the boundary
  3943. 2:25:49that's supposed to hold it. Um let's
  3944. 2:25:52quickly go and put it 0.78 or something
  3945. 2:25:54like 0.79.
  3946. 2:25:56Maybe 0.8 works. Let's keep it at 0.8.
  3947. 2:25:59Next up, we're going to make sure that
  3948. 2:26:01the Z-index is one, which is above the
  3949. 2:26:02card BG. You can see the Z-index of the
  3950. 2:26:04card BG is zero. Next, we're going to
  3951. 2:26:06add the glows for this card. We're going
  3952. 2:26:08to duplicate the simple card BG. Keep it
  3953. 2:26:10in the center. And then we're going to
  3954. 2:26:12change the name to card glow. Let's make
  3955. 2:26:16it slightly bigger than the card we
  3956. 2:26:18have. Something like 1.1 perhaps. And
  3957. 2:26:21grab the card glow. And then change the
  3958. 2:26:24image to this one. As we can see, it
  3959. 2:26:27sort of worked and sort of didn't. We're
  3960. 2:26:29going to quickly go and change the scale
  3961. 2:26:31type to fit. And we're going to change
  3962. 2:26:33the z-index to minus one. The size needs
  3963. 2:26:36to be a bit bigger. Something like 1.2
  3964. 2:26:38maybe. Maybe bigger 1.3.
  3965. 2:26:42Now we're going to change the image
  3966. 2:26:43color of the card glow to something like
  3967. 2:26:46something like this.
  3968. 2:26:49And voila. That looks pretty nice. Um,
  3969. 2:26:51we're going to make it a bit more
  3970. 2:26:53bigger. Maybe 1.3 works. And then we're
  3971. 2:26:56[music] going to change the color a bit
  3972. 2:26:58more to this.
  3973. 2:27:01and change the image transparency to
  3974. 2:27:02something like 0.5. This looks pretty
  3975. 2:27:05nice to me. So, one thing that you guys
  3976. 2:27:07might be noticing right now is that the
  3977. 2:27:09scrolling frame is currently clipping
  3978. 2:27:10the glow [music] of the frame. Um, a lot
  3979. 2:27:13of people make the mistake of adding UI
  3980. 2:27:16padding and doing a lot of stuff, maybe
  3981. 2:27:18adding uh border modes to the scrolling
  3982. 2:27:20frame. But the proper way to uh scale a
  3983. 2:27:24scrolling frame uh with UI grid layout
  3984. 2:27:27is to simply make sure the frame itself
  3985. 2:27:31has the glow inside of it. I
  3986. 2:27:32intentionally made this mistake
  3987. 2:27:34throughout the process so that I can
  3988. 2:27:35show you guys how to fix it. If we
  3989. 2:27:37quickly click on the unit frame and turn
  3990. 2:27:39on physical size, we can see that the
  3991. 2:27:41glow that we made goes outside of the
  3992. 2:27:44box, the scrolling frame does not care
  3993. 2:27:46about this. The scrolling frame is going
  3994. 2:27:48to clip everything that's not inside it.
  3995. 2:27:50So the solution is to simply make sure
  3996. 2:27:52that this box has the glow inside of it.
  3997. 2:27:55So what we're going to do now is we are
  3998. 2:27:57going to literally select all of this
  3999. 2:27:59and size it down. We're going to make
  4000. 2:28:03sure that we put it in the center.
  4001. 2:28:05Something like this.
  4002. 2:28:07And then we are going to click on this
  4003. 2:28:09frame and turn on clip descendence.
  4004. 2:28:12Now we can see that it's all perfectly
  4005. 2:28:14in sync. Um probably make it all a bit
  4006. 2:28:17smaller as well. Something like this.
  4007. 2:28:21Maybe
  4008. 2:28:23something like this works. Sure. So
  4009. 2:28:26we're just going to quickly go through
  4010. 2:28:27them and see all of them are squares.
  4011. 2:28:29And yeah, let's go back to normal
  4012. 2:28:31sizing. And then we can change or reduce
  4013. 2:28:35the glow by increasing the image
  4014. 2:28:37transparency. Something like 0.5
  4015. 2:28:40maybe 0.4 0. This works. Okay. So now
  4016. 2:28:44we're going to quickly open overview.
  4017. 2:28:47And as we can see the original frames
  4018. 2:28:49are a bit bigger. So in order to fix
  4019. 2:28:51this problem what we're going to do is
  4020. 2:28:53we are going to simply turn this
  4021. 2:28:54invisible again. Uh click on the
  4022. 2:28:56scrolling frame put it in the center and
  4023. 2:28:59fit to parent size. And we are going to
  4024. 2:29:02make the size cell size bigger.
  4025. 2:29:06And then we're going to click on
  4026. 2:29:08physical sizing. Again, as we can see,
  4027. 2:29:09it's still a bit off. So, this is all a
  4028. 2:29:12matter of just understanding and putting
  4029. 2:29:15it how you like it. We'll make it
  4030. 2:29:17slightly smaller. Probably something
  4031. 2:29:19like 0.9 0.99.
  4032. 2:29:22Probably 0.985.
  4033. 2:29:26That's good. And I change this to
  4034. 2:29:28something like 0.9
  4035. 2:29:300.98
  4036. 2:29:330.97 perhaps.
  4037. 2:29:37This is good. This is how it is. So,
  4038. 2:29:39we're just going to quickly go ahead and
  4039. 2:29:41duplicate this six times. And now we're
  4040. 2:29:44going to fix the padding for the last
  4041. 2:29:45time. Um, we're going to quickly go and
  4042. 2:29:47put this to maybe one 0.01
  4043. 2:29:510.0
  4044. 2:29:53five 0.005
  4045. 2:29:560.0 000 02
  4046. 2:29:59something like that perhaps
  4047. 2:30:02or maybe just turn it off completely
  4048. 2:30:03because we have the glows. We don't need
  4049. 2:30:05this. And then we're going to go and
  4050. 2:30:08duplicate this a mult multiple times and
  4051. 2:30:10see how it looks in the end. Uh we're
  4052. 2:30:12going to remove cell padding all over.
  4053. 2:30:14Maybe add like a little negative cell p
  4054. 2:30:17cell padding.
  4055. 2:30:19Minus 0.01
  4056. 2:30:21- 0.02
  4057. 2:30:25maybe - 0.0 03. How does it look in the
  4058. 2:30:28overview?
  4059. 2:30:30That's exactly how it looks. So, we've
  4060. 2:30:33pretty much nailed the cross on this
  4061. 2:30:35one. Um, what we're going to do now is
  4062. 2:30:37we are going to uh resize the scrolling
  4063. 2:30:40frame just a bit. We're going to drag it
  4064. 2:30:42in from this side so that the scrolling
  4065. 2:30:45bar is is exactly where we want it to
  4066. 2:30:47be. So, we're going to quickly go and do
  4067. 2:30:48this. And there we are. So, if we were
  4068. 2:30:52to quickly uh just do it slightly more
  4069. 2:30:56and let's maybe make a bunch more of
  4070. 2:30:59these. We can see that the result is
  4071. 2:31:02exactly what we wanted. It's perfectly
  4072. 2:31:04scaled all over. And this is exactly how
  4073. 2:31:06you scale a UI grid layout with a
  4074. 2:31:09scrolling frame. One thing that we need
  4075. 2:31:10to quickly fix is we need to go to the
  4076. 2:31:12scrolling frame and then we need to
  4077. 2:31:15scroll down and change the scrolling
  4078. 2:31:16direction to Yaxis only to make life
  4079. 2:31:20easier for mobile players. And then
  4080. 2:31:22let's go and delete all the other unit
  4081. 2:31:24frames so that we can continue with what
  4082. 2:31:25we had earlier. And yeah, we're going to
  4083. 2:31:28change it to physical scale for easier
  4084. 2:31:30understanding. Now let's add a text
  4085. 2:31:33label inside of it. Let's put it in the
  4086. 2:31:35center. Fit to parent size. Remove
  4087. 2:31:36background. Enable text scale. Um,
  4088. 2:31:39probably make it a bit smaller.
  4089. 2:31:42Then we're going to change the font to
  4090. 2:31:44what we had earlier, Monserat. And
  4091. 2:31:46weight is going to be extra bold. Color
  4092. 2:31:49is going to become white for now. And
  4093. 2:31:52then we are going to add a UI stroke.
  4094. 2:31:57And let's change this to level 125. Or
  4095. 2:32:01was it level LV25? There we go. So, I'm
  4096. 2:32:05assuming the position becomes a bit more
  4097. 2:32:06smaller. Just like that. And then we're
  4098. 2:32:09going to change the position to
  4099. 2:32:10something like 68.78.
  4100. 2:32:15And let's change this to executioner.
  4101. 2:32:20Go back to normal. And that's how it
  4102. 2:32:22looks like. Let's turn on overview and
  4103. 2:32:25see a glimpse.
  4104. 2:32:35It's almost the same. Um there is some
  4105. 2:32:38uh differences. So we're going to go
  4106. 2:32:40back to this and change the text X
  4107. 2:32:43alignment to center.
  4108. 2:32:45And then let's change this to X assassin
  4109. 2:32:48for the sake of it.
  4110. 2:32:50Now we're going to change the color of
  4111. 2:32:51this to something like yellow. Uh
  4112. 2:32:54somewhere
  4113. 2:32:57here. And I'm assuming both of these had
  4114. 2:33:00USI strokes on it. So let's add a UI
  4115. 2:33:02stroke. Put this to two.
  4116. 2:33:06Uh add this. Add it here as well. Select
  4117. 2:33:08the UI stroke. Select the UI stroke. And
  4118. 2:33:10then click on UI stroke scale. And there
  4119. 2:33:13we are. Let's quickly compare both of
  4120. 2:33:16them.
  4121. 2:33:22And there we go. Uh this text needs to
  4122. 2:33:24become a bit bigger.
  4123. 2:33:27And this is what we had in our overview.
  4124. 2:33:29So we're going to stick with this. Um,
  4125. 2:33:31apart from that, let's quickly hide
  4126. 2:33:32these. Name this level. Name this tune
  4127. 2:33:36name. Next, what we're going to add or
  4128. 2:33:38make sure first of all is that the
  4129. 2:33:40z-indexes of these are going to be
  4130. 2:33:42higher than viewport frame. So this is
  4131. 2:33:44going to become three, viewport frame is
  4132. 2:33:46one, and card is zero. Yep, these can
  4133. 2:33:49also be Z-index 2, but for the sake of
  4134. 2:33:51it, we're going to keep it three. Apart
  4135. 2:33:53from that, now we need to add the
  4136. 2:33:55traits. So the traits are going to be on
  4137. 2:33:57the top left side. Let's quickly go
  4138. 2:33:59ahead and put the image labels. Put them
  4139. 2:34:01in the center. Remove background. Um
  4140. 2:34:03quickly make the size smaller. Something
  4141. 2:34:06like 20. Maybe 30 works. And then we're
  4142. 2:34:11going to turn off anchor only keep
  4143. 2:34:13position and put it somewhere here. And
  4144. 2:34:16let's play around with the position. Now
  4145. 2:34:20what we're going to do is we are going
  4146. 2:34:22to [music] rename this to trait. And
  4147. 2:34:25let's quickly scale the size of it.
  4148. 2:34:29Now let's change the icon to the trophy
  4149. 2:34:33icon that we had and put it here. Let's
  4150. 2:34:36change the scale type to fit.
  4151. 2:34:39And we can see that it's quite small
  4152. 2:34:41because of the glow around it. So we
  4153. 2:34:43have to make it a bit bigger. Let's go
  4154. 2:34:44with 0 0.4 is going to work.
  4155. 2:34:48While making this trophy, I just
  4156. 2:34:50remembered that this has to be in a UI
  4157. 2:34:51list layout. We can't just put it like
  4158. 2:34:53this because units will have to uh have
  4159. 2:34:56their traits [music] being swapped every
  4160. 2:34:58now and then and we need it to be in a
  4161. 2:35:00list layout rather than a specific
  4162. 2:35:02image. So what we're going to do quickly
  4163. 2:35:04is we're going to put this on the side
  4164. 2:35:05and go to units. Add a new frame inside
  4165. 2:35:08of units
  4166. 2:35:10and remove the background. Put it in the
  4167. 2:35:11center
  4168. 2:35:13with anchor equipped. And then we're
  4169. 2:35:16going to quickly go here somewhere
  4170. 2:35:20and somewhere here.
  4171. 2:35:24And then when we're somewhere here,
  4172. 2:35:27let's quickly uh change this to traits
  4173. 2:35:30and add a UI list layout inside of it.
  4174. 2:35:34The UI list layout is going to be
  4175. 2:35:36vertical. Horizontal alignment is going
  4176. 2:35:37to be center. And um let's quickly put
  4177. 2:35:42this trait uh inside of it. Uh let's
  4178. 2:35:45quickly add a fixed aspect ratio to it
  4179. 2:35:46so it retains its uh dimensions when put
  4180. 2:35:49inside of the ULS layout. Uh so here we
  4181. 2:35:52are. We have to make it a bit bigger so
  4182. 2:35:54that it looks nice. Something like this.
  4183. 2:36:04Now we can quickly add another trait and
  4184. 2:36:06then change the UI padding to something
  4185. 2:36:08like minus0.1
  4186. 2:36:10maybe -0.3.
  4187. 2:36:12Nopeus 0.2. two. That looks nice. Um,
  4188. 2:36:15let's change the second trait to the
  4189. 2:36:18blood one that we had, the bleed one.
  4190. 2:36:21Uh, let's change this one to bleed.
  4191. 2:36:25And there we are. So, if we quickly go
  4192. 2:36:27on overview to compare,
  4193. 2:36:31we have it the other way around. So,
  4194. 2:36:32let's quickly fix that. The trophy uh
  4195. 2:36:35layout order is going to become one. So,
  4196. 2:36:37it's now higher than the bleed ones. So,
  4197. 2:36:39now let's quickly go and compare again.
  4198. 2:36:44We can see that the level in the image
  4199. 2:36:46is much smaller. But for the sake of UX
  4200. 2:36:49so that it's easier for players to see,
  4201. 2:36:51let's keep it as big as it is. Um, one
  4202. 2:36:54thing that we need to do is we have to
  4203. 2:36:55move frames a bit more to the top left.
  4204. 2:36:58So let's quickly go and do that.
  4205. 2:37:02And now if you were to compare, it is
  4206. 2:37:05almost the same. So now let's quickly uh
  4207. 2:37:07for our own ease of comfort go ahead and
  4208. 2:37:10put this to the right side. Um, we're
  4209. 2:37:12going to go right here.
  4210. 2:37:15Put it 875. There we go. We're going to
  4211. 2:37:18call this access.
  4212. 2:37:20So, in access, we need to have um, if we
  4213. 2:37:24look in the overview real quick, we have
  4214. 2:37:26the equipped button and the lock button.
  4215. 2:37:28So, what we're going to do now is we are
  4216. 2:37:30going to uh, copy the icon equipped and
  4217. 2:37:35put it right here.
  4218. 2:37:39And we're going to make the size of the
  4219. 2:37:41equipped icon much smaller.
  4220. 2:37:44We can hardcode the sizes for these ones
  4221. 2:37:46because they are going to be uh swapped
  4222. 2:37:48around. We don't have any problem for
  4223. 2:37:50these ones. [music] It's all going to be
  4224. 2:37:52okay. Apart from that, let's quickly
  4225. 2:37:54change this one to locked.
  4226. 2:37:59So, we'll have to make the size smaller
  4227. 2:38:00for this one as well. Let's copy the
  4228. 2:38:03same sizes for both of them.
  4229. 2:38:08And then on the left of the equip
  4230. 2:38:11button, we will have the favorite icon.
  4231. 2:38:13Now the favorite icon can be an image
  4232. 2:38:15label because it's not supposed to be in
  4233. 2:38:17a list. So let's quickly go ahead and
  4234. 2:38:20[music] copy the trait from here. Put it
  4235. 2:38:22here inside of this by pressing control
  4236. 2:38:24shift V. And then let's position it
  4237. 2:38:27somewhere like this.
  4238. 2:38:31And then let's copy the favored icon and
  4239. 2:38:34then put it here.
  4240. 2:38:36This looks pretty nice. Uh let's put fit
  4241. 2:38:39to window and then let's try to compare
  4242. 2:38:42both of them from a bit of a distance.
  4243. 2:38:45As we can see, there are some minor
  4244. 2:38:46differences. The differences are pretty
  4245. 2:38:48much just because of some uh cell sizes
  4246. 2:38:52and some small stuff here and there. You
  4247. 2:38:53can never truly copy a UI one to one
  4248. 2:38:56from a third party software. There are
  4249. 2:38:58always going to be minor differences
  4250. 2:39:00present all over. But what we can
  4251. 2:39:02change, we should uh let's quickly move
  4252. 2:39:04the favored icon a bit higher.
  4253. 2:39:07Something like this. And the traits as
  4254. 2:39:10well. Sorry, the axis as well.
  4255. 2:39:14This looks pretty nice. So next up, what
  4256. 2:39:17we have is we are going to um quickly
  4257. 2:39:21add the card selected below the card BG
  4258. 2:39:24and above the card glow. So, we're just
  4259. 2:39:27going to simply copy and duplicate the
  4260. 2:39:29card glow and change it from card glow
  4261. 2:39:33to card selected. Let's add this and put
  4262. 2:39:36this right here. As we if you remember
  4263. 2:39:38right, it's a white color. So, it would
  4264. 2:39:42look like this with um zero
  4265. 2:39:44transparency. What we have to do now is
  4266. 2:39:46we have to copy the exact color that we
  4267. 2:39:48want it to be. What we're going to do is
  4268. 2:39:50we're going to turn on overview
  4269. 2:39:52right here and we're going to see that
  4270. 2:39:55this is the color that we want. So, same
  4271. 2:39:57thing as before, what we're going to do
  4272. 2:39:58is we are going to click on image color,
  4273. 2:40:02pick screen color, and then we're going
  4274. 2:40:05to select the color that we want.
  4275. 2:40:08And there we go. So, now uh if we were
  4276. 2:40:11to quickly hide overview, we can see
  4277. 2:40:13that we got our color. We're going to
  4278. 2:40:15call this card selected. and we're going
  4279. 2:40:19to make it smaller completely.
  4280. 2:40:23Uh, all the important parts of this card
  4281. 2:40:25have been added to it. And even the
  4282. 2:40:28viewport, we're just going to quickly go
  4283. 2:40:30ahead and do one thing. We want the
  4284. 2:40:32cards to be selectable. We don't want
  4285. 2:40:34them to be frames for this reason. What
  4286. 2:40:36we want them to do is let's quickly
  4287. 2:40:38recclass them, simple stuff, into an
  4288. 2:40:42image button. Done. So now all the cards
  4289. 2:40:45are easily selectable. An image button
  4290. 2:40:47functions basically the same as a frame.
  4291. 2:40:49You don't have to worry about anything
  4292. 2:40:50else. So yeah, let's just duplicate this
  4293. 2:40:54around five or six times. And we can see
  4294. 2:40:59that it looks pretty nice. For the sake
  4295. 2:41:02of matching our UI in the picture, we're
  4296. 2:41:05going to hide the selected and we're
  4297. 2:41:09going to
  4298. 2:41:12hide the favorited and the trophy. So,
  4299. 2:41:15let's quickly do that. Favorite is going
  4300. 2:41:17to be hidden. Uh, trophy is going to be
  4301. 2:41:21hidden and the selected is going to be
  4302. 2:41:24hidden.
  4303. 2:41:25So, let's quickly go to this card,
  4304. 2:41:27delete this one, and delete the rest of
  4305. 2:41:30them. And then duplicate this card
  4306. 2:41:32again. Let's see if the other cards are
  4307. 2:41:35the same. Um, one of them is. Yeah. And
  4308. 2:41:37then we're also going to hide the locked
  4309. 2:41:40icon. So, let's quickly go and do that.
  4310. 2:41:42Let's hide the locked icon. And now um
  4311. 2:41:46let's go back enabled
  4312. 2:41:48and after this one the equipped one is
  4313. 2:41:50also going to be hidden. So let's go
  4314. 2:41:52that
  4315. 2:41:53hide this one. And now let's copy paste
  4316. 2:41:56again. So this is how our UI is laid out
  4317. 2:41:59in our image. What we're going to do
  4318. 2:42:01next is we're just going to duplicate
  4319. 2:42:02it. And now we have to get a different
  4320. 2:42:06color for the card. So, we can easily do
  4321. 2:42:08that by going to card yellow and then
  4322. 2:42:11copying this one and then coming back to
  4323. 2:42:14card BG and pasting the ID.
  4324. 2:42:18As we can see, since this wasn't
  4325. 2:42:19grayscale, this was easily done. Um,
  4326. 2:42:21we're going to quickly go to card glow,
  4327. 2:42:23change the color as well to something
  4328. 2:42:25like
  4329. 2:42:27maybe something like that works. That
  4330. 2:42:29looks pretty nice. Um, we're going to
  4331. 2:42:31change the trait to what we had in the
  4332. 2:42:33overview. Let's quickly see what we had.
  4333. 2:42:36We had yinyang. So, we're going to copy
  4334. 2:42:38it with yin. Right click this, copy ID,
  4335. 2:42:41and then we're going to go in traits and
  4336. 2:42:44we're going to change this trait to this
  4337. 2:42:48one. So, as we can see, we have it right
  4338. 2:42:51here. So, what we're going to do next is
  4339. 2:42:53we are going to quickly go and duplicate
  4340. 2:42:54this six times as well. And now, let's
  4341. 2:42:57go and um quickly rename these six to uh
  4342. 2:43:02minus one layout order. That's zero. And
  4343. 2:43:04then the next ones can be one and it
  4344. 2:43:06would just read it like these need to
  4345. 2:43:08become first, these need to come second
  4346. 2:43:10and then these need to come third. So
  4347. 2:43:11let's select um for example this one,
  4348. 2:43:15duplicate it real fast and change the
  4349. 2:43:17layout order to one. So now it's in the
  4350. 2:43:19end. Now we just need to change the um
  4351. 2:43:22card BG to green. So let's quickly do
  4352. 2:43:24that.
  4353. 2:43:28Let's change the glow to green as well.
  4354. 2:43:36Now we just need to change the icon from
  4355. 2:43:38bleed to something like the uh the fire
  4356. 2:43:42that we had. So where is our fire? Right
  4357. 2:43:45here. Copy ID to clipboard. Click on
  4358. 2:43:48this and then put the ID here. There we
  4359. 2:43:50are. That's our fire. What we're going
  4360. 2:43:52to do next is we are going to simply uh
  4361. 2:43:55go ahead and duplicate this frame six
  4362. 2:43:57times.
  4363. 2:43:59There we go. So this is how our frames
  4364. 2:44:01are looking like in Roblox Studio after
  4365. 2:44:03being imported. So let's quickly go and
  4366. 2:44:06com compare them and we'll see the
  4367. 2:44:08differences. So you can see how similar
  4368. 2:44:11they are. The only differences might be
  4369. 2:44:13the sizing. And the scroll bar color is
  4370. 2:44:16slightly different. So let's quickly go
  4371. 2:44:18and fix that.
  4372. 2:44:20Yep, that's pretty much like 99% the
  4373. 2:44:23same. Um, one thing that we can do is
  4374. 2:44:25because I feel like it's looking a bit
  4375. 2:44:26too tight is I'm going to increase the
  4376. 2:44:28padding right here. Something like this.
  4377. 2:44:31So, now that we're done with that, what
  4378. 2:44:32we're going to quickly do is we're going
  4379. 2:44:34to collapse this and go to UI grid
  4380. 2:44:36layout. Um, one thing that we've noticed
  4381. 2:44:37is that we have used offset cell size.
  4382. 2:44:40Um, unfortunately, uh, we forgot to use
  4383. 2:44:43scaled cell size in the start. Um, this
  4384. 2:44:45is the third mistake I've made
  4385. 2:44:47throughout the video so that I can show
  4386. 2:44:48you how to fix this. Um what we have to
  4387. 2:44:50do in order to fix this issue is we can
  4388. 2:44:52[music] simply go here, select cell size
  4389. 2:44:55and click on scale. Now as we can see
  4390. 2:44:57the entire sizes of the cells have
  4391. 2:44:59become a bit smaller. Um there's no
  4392. 2:45:02problem with this. All you have to do is
  4393. 2:45:04you have to change the cell size in your
  4394. 2:45:06mind to match the value again. So if you
  4395. 2:45:09were to go with 0.2 doesn't work. 0.3 n
  4396. 2:45:12something like 0.35
  4397. 2:45:15maybe 0.37.
  4398. 2:45:17Nope. 0.38. This looks pretty nice to
  4399. 2:45:20me. Um, I think this is the perfect
  4400. 2:45:22size. Uh, the reason why you might be
  4401. 2:45:25thinking uh why it's not messing up is
  4402. 2:45:27because the plug-in automatically adds a
  4403. 2:45:29UI aspect ratio constraint to the UI
  4404. 2:45:31grid layout. You can see the aspect
  4405. 2:45:33ratio is set to one here, which means it
  4406. 2:45:35is going to uh force it to stay a square
  4407. 2:45:38no matter what we do. So, you don't have
  4408. 2:45:41to go ahead and add an aspect ratio
  4409. 2:45:42constraint to all of these image buttons
  4410. 2:45:44separately. it will just add one to the
  4411. 2:45:45UI grid layout and everything else will
  4412. 2:45:47function as intended. So, that's a very
  4413. 2:45:49big perk of using the plug-in. Um, we're
  4414. 2:45:52going to quickly click on scrolling
  4415. 2:45:54frame and then we're going to click on
  4416. 2:45:55ultra scale just to make sure that
  4417. 2:45:58everything is perfectly scaled inside of
  4418. 2:46:00it. Um, we're done with our main units
  4419. 2:46:02holder. The next thing we're going to do
  4420. 2:46:04is we're going to collapse this as well.
  4421. 2:46:06We're going to come in main inventory
  4422. 2:46:08and we are going to create the three
  4423. 2:46:11buttons that we have right here. uh
  4424. 2:46:13click on extra buttons for our ease of
  4425. 2:46:15comfort. We're going to duplicate them.
  4426. 2:46:16We're going to change the position into
  4427. 2:46:18the center and then we are going to move
  4428. 2:46:20them down.
  4429. 2:46:22We're going to increase the size to make
  4430. 2:46:25sure that we're matching it properly. Um
  4431. 2:46:27as we can see it the one one of the
  4432. 2:46:29lines is here, one of it is here, which
  4433. 2:46:30means it's not properly scaled yet. Uh
  4434. 2:46:33we have it to just quickly scale it
  4435. 2:46:35nice. And what we're going to do for
  4436. 2:46:37that is we're just going to keep playing
  4437. 2:46:38with the position and the sizing. Uh,
  4438. 2:46:41let's put it somewhere.
  4439. 2:46:45And there we go. That looks perfectly
  4440. 2:46:47centered. So now what we're going to do
  4441. 2:46:49is we're going to go back and make the
  4442. 2:46:50background transparency one. And we're
  4443. 2:46:52going to lower the size again. Something
  4444. 2:46:54like 0.3. Nope. Something like 0.6.
  4445. 2:46:59Uh, we're going to quickly enable the
  4446. 2:47:00overview and see what it's like. As you
  4447. 2:47:03can see, it's almost here and here. So
  4448. 2:47:05these four uh sparkles. So, let's
  4449. 2:47:09quickly go ahead and do that. Uh, we're
  4450. 2:47:11going to click on the extra buttons that
  4451. 2:47:12we had again, and we're going to small
  4452. 2:47:16lower the size until we can match those
  4453. 2:47:18four sparkles. So, I'm assuming it's
  4454. 2:47:21going to be 0.53. Something like that.
  4455. 2:47:24And that looks pretty nice to me. Let's
  4456. 2:47:26quickly call this main buttons and then
  4457. 2:47:29go inside it. And now we're going to
  4458. 2:47:31delete one of these. Keep one of them.
  4459. 2:47:33and the UIS layout. We're going to make
  4460. 2:47:35sure that we put it uh horizontal
  4461. 2:47:38alignment is going to turn into center.
  4462. 2:47:40It's not really required, but we can do
  4463. 2:47:42it this way. Um the next thing that
  4464. 2:47:44we're going to do is we are going to go
  4465. 2:47:45to the lock button and we're going to
  4466. 2:47:47simply delete this stuff. Uh in lock
  4467. 2:47:50button, we're going to change this just
  4468. 2:47:52to a button for now. We're going to
  4469. 2:47:53click on the U main button green copy ID
  4470. 2:48:00and then we're going to paste it in a
  4471. 2:48:02text label inside of this. So let's
  4472. 2:48:04quickly go here remove background fit to
  4473. 2:48:07parent size and then change scale type
  4474. 2:48:10to fit and then put it right here. So as
  4475. 2:48:13we can see it's uh looking like that.
  4476. 2:48:16All we have to do is quickly increase
  4477. 2:48:18the size of it.
  4478. 2:48:21duplicate this three times and then
  4479. 2:48:23lower the UI padding.
  4480. 2:48:27This looks pretty nice to me. So, we're
  4481. 2:48:29just going to change the colors real
  4482. 2:48:30fast. Uh let's put this to
  4483. 2:48:34uh something like this. And let's put
  4484. 2:48:37this one to something like
  4485. 2:48:40um something like this. Uh let's go in
  4486. 2:48:43overview and see the color scheme that
  4487. 2:48:44we have. So, it goes green, pink, and
  4488. 2:48:48then yellow. All we have to do is change
  4489. 2:48:50the layout order. So we're going to go
  4490. 2:48:51here. Green is going to be zero. As we
  4491. 2:48:53can see it's already zero. Pink is going
  4492. 2:48:55to be one and then yellow is going to
  4493. 2:48:58become two. So as we can see now it's
  4494. 2:49:01green, pink, yellow. All we have to do
  4495. 2:49:03now is name them. Uh if you click on
  4496. 2:49:06overview again, we can see it's called
  4497. 2:49:07teams equip best and sell mode. So, what
  4498. 2:49:10we're going to do is we're going to
  4499. 2:49:11quickly call this button button themes
  4500. 2:49:18button
  4501. 2:49:20equip best
  4502. 2:49:22and then button cell mode. So, the next
  4503. 2:49:25thing we're going to do is increase the
  4504. 2:49:27padding just a bit to match it more to
  4505. 2:49:30our UI. And then we are going to quickly
  4506. 2:49:33uh ultra scale this, ultra scale this,
  4507. 2:49:37and then ultra scale this. Next up,
  4508. 2:49:40we're going to go ahead and add a text
  4509. 2:49:41label inside one of these. Scale it. Fit
  4510. 2:49:44to parent size. Remove background. Uh
  4511. 2:49:46enable text scaled. Change the text to
  4512. 2:49:50Monserat. Extra bold.
  4513. 2:49:54And then we're going to make the size of
  4514. 2:49:56it entirely small. something like 0 0.7
  4515. 2:50:01perhaps 0.6.
  4516. 2:50:05This looks pretty nice. Maybe 0.55. This
  4517. 2:50:08looks nice to me. Uh remember the yaxis
  4518. 2:50:11should always be smaller than the x-axis
  4519. 2:50:13because of a lot of reasons. Um let's
  4520. 2:50:16call this teams. Change the color to
  4521. 2:50:18white just for our readability. And then
  4522. 2:50:20add a UI stroke to it. the UI stroke is
  4523. 2:50:23going to become I think three pixels or
  4524. 2:50:25maybe two three pixels bigger. Uh let's
  4525. 2:50:28quickly go and scale our UI stroke
  4526. 2:50:30scale. Uh we can quickly see what it's
  4527. 2:50:33like in our original UI. As we can see
  4528. 2:50:36it's a bit smaller. So what we're going
  4529. 2:50:38to do is we are going to quickly go
  4530. 2:50:39ahead and make it a bit small. Our text
  4531. 2:50:42click on the text and [music] then
  4532. 2:50:44reduce the size to something like 0 0.45
  4533. 2:50:480.46 maybe. [music] And then we're going
  4534. 2:50:51to make the X-axis a bit bigger.
  4535. 2:50:54Next, what we're going to do is we're
  4536. 2:50:55going to rename this to name. Let's
  4537. 2:50:57quickly select all of these image labels
  4538. 2:50:59and rename it in the properties so that
  4539. 2:51:01it renames all of it to texture. Uh
  4540. 2:51:05we're going to make sure that the
  4541. 2:51:06Z-index of all of these is zero. Let's
  4542. 2:51:09do that quickly. Uh duplicate after
  4543. 2:51:11changing the UI [music] stroke scale
  4544. 2:51:13size to 85. Let's keep that. Uh let's
  4545. 2:51:18quickly copy and paste this in both of
  4546. 2:51:20these by pressing control shift V. And
  4547. 2:51:23then we are going to change this to
  4548. 2:51:24equip
  4549. 2:51:26equip best. And this is going to change
  4550. 2:51:29[music] to cell mode. This looks pretty
  4551. 2:51:32nice to me. Let's quickly go ahead and
  4552. 2:51:34see what it was like in our original uh
  4553. 2:51:38uh UI.
  4554. 2:51:40As we can see, it looks pretty similar.
  4555. 2:51:42Very very similar. There might be some
  4556. 2:51:44minor differences here and there. If you
  4557. 2:51:46want, you can go ahead and fix them. I
  4558. 2:51:48don't I I like it the way it is, so I'm
  4559. 2:51:50not going to be fixing them. Uh, one
  4560. 2:51:52thing that I'm going to do quickly is
  4561. 2:51:54I'm [music] going to show you guys how
  4562. 2:51:55to fix the button. As we can see, the
  4563. 2:51:58button is really big right now. Uh, we
  4564. 2:52:00don't want this because if a player was
  4565. 2:52:01to move their mouse here, he would be
  4566. 2:52:03able to click both this button and this
  4567. 2:52:04button. Same with this one and this one.
  4568. 2:52:06So, what we're going to do is we are
  4569. 2:52:08going to quickly open both of these uh
  4570. 2:52:10select everything inside of it. Change
  4571. 2:52:13uh the size to offset and then change
  4572. 2:52:16the position to offset as well. Once
  4573. 2:52:18we're done with that, we're going to
  4574. 2:52:19select all of these buttons and then we
  4575. 2:52:21are going to make the sizes a bit
  4576. 2:52:22smaller.
  4577. 2:52:25What we're going to do now is we are
  4578. 2:52:26going to quickly go ahead and scale all
  4579. 2:52:28of them. Quickly click on scale, scale
  4580. 2:52:30position, scale size. Once we're done
  4581. 2:52:33with that, we're going to uh quickly go
  4582. 2:52:36back and increase the UI padding.
  4583. 2:52:39So, as we can see after doing that, 0.01
  4584. 2:52:420.005. This looks pretty nice to me. So,
  4585. 2:52:45now uh it is pretty much done. We have
  4586. 2:52:47fixed the scaling and everything of this
  4587. 2:52:49entire UI. And this looks pretty nice to
  4588. 2:52:51me. Um, one thing that we're going to do
  4589. 2:52:53quickly is let's uh increase the number
  4590. 2:52:57of units we have near the end just so
  4591. 2:52:59that it looks nice and fun to use.
  4592. 2:53:03uh something like that. As we can see,
  4593. 2:53:05we have all these units and they're
  4594. 2:53:06perfectly scaled. Uh one thing that
  4595. 2:53:08we're going to quickly do is we are
  4596. 2:53:09going to enable overview again.
  4597. 2:53:15As we can see, uh swapping them back and
  4598. 2:53:17forth fast, we can see that it's all
  4599. 2:53:19looking so much similar to our original
  4600. 2:53:21UI, which is a great thing. This means
  4601. 2:53:23that the UI has been made very, very
  4602. 2:53:25nicely. Um the buttons need a bit more
  4603. 2:53:28padding. I'm going to go ahead and do
  4604. 2:53:29that real fast. Apart from that, we need
  4605. 2:53:31to get started on the right hand side.
  4606. 2:53:32So, let's do that. So, let's quickly go
  4607. 2:53:35here.
  4608. 2:53:38Main buttons. Let's increase the padding
  4609. 2:53:41to something like 0.15.
  4610. 2:53:44Now that we're done with that, uh let's
  4611. 2:53:46get started on our right hand side. So,
  4612. 2:53:49we're going to close this. Uh main
  4613. 2:53:52inventory is going to be closed
  4614. 2:53:53completely. Uh inventory details now is
  4615. 2:53:55going to be open. Uh, one thing that we
  4616. 2:53:58can do is we can add an aspect ratio
  4617. 2:54:01constraint to the main frame, main
  4618. 2:54:02inventory. Just to be safe, in case this
  4619. 2:54:05is the only frame that's enabled and
  4620. 2:54:07maybe they're be they're doing the
  4621. 2:54:09entire thing a bit differently than what
  4622. 2:54:11we expect, we're going to do this for
  4623. 2:54:13the sake of clarity. Apart from that,
  4624. 2:54:16uh, we're going to get started on the
  4625. 2:54:17inventory details. So the first thing
  4626. 2:54:19that we're going to add in the inventory
  4627. 2:54:20details is we are going to quickly go
  4628. 2:54:22here and we're going to lower the
  4629. 2:54:25Z-index to minus 50 again and we're
  4630. 2:54:27going to reduce the image transparency.
  4631. 2:54:29Something like 0.6 works. Okay,
  4632. 2:54:34next up we are going to get started. Uh
  4633. 2:54:36let's quickly go in inventory details
  4634. 2:54:38just like we did everything here. We are
  4635. 2:54:40going to make sure it's all scaled. So
  4636. 2:54:42let's quickly go ahead and add an image
  4637. 2:54:44label to this. Uh we're going to search
  4638. 2:54:48and then put it in the center. What
  4639. 2:54:50we're going to do next is we are going
  4640. 2:54:51to simply uh size it to what we think is
  4641. 2:54:54right. Uh let's just for our ease of
  4642. 2:54:56comfort put it to the left for now. And
  4643. 2:54:59then something like this. Looks pretty
  4644. 2:55:01nice to me. Um we're going to change the
  4645. 2:55:03anchor point to the center again. And
  4646. 2:55:04then let's move it higher. Something
  4647. 2:55:07like 0.2. Uh let's increase the size
  4648. 2:55:10first. We'll have to scale it. And then
  4649. 2:55:12let's increase the size to something
  4650. 2:55:14like 0.15.
  4651. 2:55:16Maybe 0.17 works. That looks pretty nice
  4652. 2:55:19to me. Maybe 0.172.
  4653. 2:55:22Uh let's remove the image background.
  4654. 2:55:26And then what we're going to do is we
  4655. 2:55:27are going to simply change the image
  4656. 2:55:30texture. So we are going to go to the
  4657. 2:55:33top right container right here. We're
  4658. 2:55:36going to copy the ID and put it here. Uh
  4659. 2:55:38one thing that we're going to do is we
  4660. 2:55:39are going to change the scale type to
  4661. 2:55:41fit something like that. And then we are
  4662. 2:55:44going to simply uh make it bigger. So uh
  4663. 2:55:46we have a lot of ways to do this. Um we
  4664. 2:55:49can there wouldn't be any problem with
  4665. 2:55:51resizing this bigger as well because
  4666. 2:55:53this is not something like a clickable
  4667. 2:55:56button or anything. So it doesn't need
  4668. 2:55:58to be uh sized small. But for the sake
  4669. 2:56:01of cleanliness, let's just quickly
  4670. 2:56:02duplicate this and put it inside of
  4671. 2:56:04this. Uh what what we're going to do now
  4672. 2:56:06is we're going to center it and fit to
  4673. 2:56:08parent size. And then we can offset the
  4674. 2:56:11size and then the position. Uh we are
  4675. 2:56:14going to reclass the image label into a
  4676. 2:56:16frame. And now that we have a frame,
  4677. 2:56:18let's quickly go ahead and call this top
  4678. 2:56:21right. Click on the image label that we
  4679. 2:56:23had. Scale the size really fast
  4680. 2:56:27and then center it. Uh let's just call
  4681. 2:56:30it one. And then let's make the size a
  4682. 2:56:32bit bigger depending on what we want.
  4683. 2:56:34Maybe something like 1.2, 1.3,
  4684. 2:56:371.35,
  4685. 2:56:401.36.
  4686. 2:56:41I can see a problem here. We're going to
  4687. 2:56:43have to move this just a bit.
  4688. 2:56:48So, all we have to do now is let's just
  4689. 2:56:49quickly go ahead and make sure that the
  4690. 2:56:51inventory details is below this cross
  4691. 2:56:52button. So, we're going to change the
  4692. 2:56:54Z-index to zero. As you can see, the
  4693. 2:56:57close button has now popped over the UI
  4694. 2:56:59stroke. Uh next up what we're going to
  4695. 2:57:01do is we are going to go ahead and
  4696. 2:57:04quickly uh change this to texture and
  4697. 2:57:06put it below everything. So this is also
  4698. 2:57:08going to be zero zindex. Um next up what
  4699. 2:57:12we have is we need to copy everything
  4700. 2:57:14that we had in our original thing. Um
  4701. 2:57:16let's quickly change the zindex of the
  4702. 2:57:18overview to 50 and [music]
  4703. 2:57:21start adding stuff on top of it. So, in
  4704. 2:57:23order to uh add the text label, there's
  4705. 2:57:26multiple ways, but I'm just going to go
  4706. 2:57:27ahead and copy this one that we had uh
  4707. 2:57:29instead of having to remake everything.
  4708. 2:57:31I'll just click on capacity, Ctrl + C,
  4709. 2:57:34and then go here and Ctrl +V. I'll
  4710. 2:57:37center it fit to parent size instantly
  4711. 2:57:39and turn off rich text cuz I don't think
  4712. 2:57:41we will be needing that. And then change
  4713. 2:57:44this to something like XYZ for now.
  4714. 2:57:46Let's enable overview again right here.
  4715. 2:57:50And now we can position it. So let's
  4716. 2:57:52change this to unit name. And then let's
  4717. 2:57:57make it a bit smaller. Something like
  4718. 2:57:590.5.
  4719. 2:58:00Nope. 0.4 I think. Maybe 0.35.
  4720. 2:58:05Okay. Let's now change the X-axis to
  4721. 2:58:09something like
  4722. 2:58:18so. So next up, what we're going to do
  4723. 2:58:20is we are going to simply duplicate
  4724. 2:58:22that. Let's change that to unit rarity.
  4725. 2:58:25Uh and then we are going to position it
  4726. 2:58:27low again. Maybe something like five.
  4727. 2:58:31Let's make it a bit smaller. Something
  4728. 2:58:33like 23 maybe. And change the text to
  4729. 2:58:36mythical.
  4730. 2:58:39We'll have to make it a bit smaller.
  4731. 2:58:40Something like 0.2. Nope. 0.2. Exactly.
  4732. 2:58:44Yep. There we go. And we are going to
  4733. 2:58:47lower it even more. A bit less.
  4734. 2:58:51And that looks pretty nice. Um, let's
  4735. 2:58:53quickly go ahead and duplicate that
  4736. 2:58:56again and change this to unit level.
  4737. 2:59:01Now, as we had right here, we are going
  4738. 2:59:03to simply go ahead and turn on rich text
  4739. 2:59:05again. [music]
  4740. 2:59:06And we're going to position it lower.
  4741. 2:59:11And we're going to change this to LV.25.
  4742. 2:59:15So, we can see that we have to make it a
  4743. 2:59:17bit smaller. Again, this is just going
  4744. 2:59:19to become 0.17
  4745. 2:59:21perhaps. That looks pretty nice. Uh,
  4746. 2:59:24we'll probably have to move it slightly
  4747. 2:59:26lower. Um, that's what I'm going to do.
  4748. 2:59:29That looks nice to me. Um, next up, what
  4749. 2:59:31we're going to do is we are going to uh
  4750. 2:59:34get the color that we had. So let's
  4751. 2:59:36quickly change the overview [music]
  4752. 2:59:37image transparency to zero and click on
  4753. 2:59:40unit level and then text color pick
  4754. 2:59:44screen color
  4755. 2:59:46and then we're going to click on
  4756. 2:59:47precisely the point that we think is the
  4757. 2:59:49right one. I'm looking at the slider and
  4758. 2:59:51this one looks very nice. I'm just going
  4759. 2:59:53to memorize the hex so it's F168 FF. So
  4760. 2:59:57I'm going to cancel all of that. F168 FF
  4761. 3:00:01F168 FF F168 FF So now we're going to
  4762. 3:00:06come here. We are going to click this.
  4763. 3:00:08We're going to type the same syntax
  4764. 3:00:10where is equal to F # F168 FF and we're
  4765. 3:00:15going to close it. And then we're going
  4766. 3:00:16to type the same thing here. Font uh 25
  4767. 3:00:19will have to be outside of it. So let's
  4768. 3:00:21just quickly go ahead and do that. And
  4769. 3:00:22there we go. That's exactly how it is.
  4770. 3:00:24Uh next up, what we're going to do is we
  4771. 3:00:26are going to make the size of this
  4772. 3:00:28smaller. something like this. It won't
  4773. 3:00:29have to be bigger than that. Same for
  4774. 3:00:31this. Something like this. Perhaps unit
  4775. 3:00:35name can be this big. Um we're going to
  4776. 3:00:37enable overview again.
  4777. 3:00:39Uh what we're going to do next is we are
  4778. 3:00:41going to copy the gradient. So we are
  4779. 3:00:45going to go to the unit name. We are
  4780. 3:00:46going to simply add a UI gradient to it.
  4781. 3:00:49And then we're going to go here and
  4782. 3:00:51we're going to choose the colors. So we
  4783. 3:00:54are going to click on pick screen
  4784. 3:00:56colors. Again, the screen color for
  4785. 3:00:58that, I'm assuming, is just white. Uh,
  4786. 3:01:00let's just quickly go and select white
  4787. 3:01:02cuz I think that's pretty much just
  4788. 3:01:04going to be it.
  4789. 3:01:06So, that's what we're going to go with.
  4790. 3:01:08Uh, let's hide overview. And, yeah,
  4791. 3:01:11looks so much nice. Looks very similar
  4792. 3:01:13to what we need. If we can quickly go.
  4793. 3:01:16Yep, that looks nice. Uh, apart from
  4794. 3:01:18that, let's enable overview again and
  4795. 3:01:20copy this one now. So, we're going to
  4796. 3:01:22duplicate this one into rarity.
  4797. 3:01:25And then we're going to change it again.
  4798. 3:01:27So let's select this button and then
  4799. 3:01:31click on pick screen color and we're
  4800. 3:01:33going to select something like this.
  4801. 3:01:34Let's just go and make this bright and
  4802. 3:01:37then select this one and then color and
  4803. 3:01:38then pick screen color and then select
  4804. 3:01:40this one or sorry not that one. The
  4805. 3:01:43color is going to be this one. Let's
  4806. 3:01:46make this fully bright as well. And
  4807. 3:01:47there we go. So we're going to close
  4808. 3:01:48that. And then we're going to hide
  4809. 3:01:51overview again for a second. And that
  4810. 3:01:52looks pretty nice. Um, I'm just going to
  4811. 3:01:54make a small adjustment cuz I think that
  4812. 3:01:56looks a bit off. Um, I'm going to go
  4813. 3:01:58here and perhaps make it a bit more
  4814. 3:02:04I actually like it being more on the
  4815. 3:02:05orange side. So, I'm going to put it
  4816. 3:02:07something like something like this. I
  4817. 3:02:09like this. So, I'm going to close that.
  4818. 3:02:12And then what I'm going to do is I'm
  4819. 3:02:14going to enable overview again and then
  4820. 3:02:16put the image transparency to 0.6. And
  4821. 3:02:19now we're going to copy the level. And
  4822. 3:02:23then we're going to duplicate it. And
  4823. 3:02:24we're going to call this tradable.
  4824. 3:02:27So let's just quickly go and position it
  4825. 3:02:29right here to this. And then right here.
  4826. 3:02:35And then all we have to do is change the
  4827. 3:02:37text X alignment to right. And then uh
  4828. 3:02:40sorry, we're going to change the text to
  4829. 3:02:42tradable
  4830. 3:02:44unit. Uh all we have to do now is we
  4831. 3:02:47have to just resize it a bit to perhaps
  4832. 3:02:49this. And yeah, that looks pretty nice.
  4833. 3:02:51Uh, it needs to be systematic. So, I'm
  4834. 3:02:53not going to resize this smaller to
  4835. 3:02:54match the original photo cuz that's
  4836. 3:02:56something wrong with the original one,
  4837. 3:02:58not this one. So, the next thing that
  4838. 3:03:00we're going to do is we're going to add
  4839. 3:03:01a UI gradient to this. Let's just
  4840. 3:03:02duplicate this one into tradeable.
  4841. 3:03:05And we're going to make overview very uh
  4842. 3:03:09opaque again. And then we are just going
  4843. 3:03:11to simply change the gradient. So, let's
  4844. 3:03:14just expand that.
  4845. 3:03:16It's fully transparent.
  4846. 3:03:19Click this one.
  4847. 3:03:22something like this. And yeah, let's
  4848. 3:03:23close that. And then we can close the
  4849. 3:03:26overview again and see what it looks
  4850. 3:03:27like. And that looks pretty nice to me.
  4851. 3:03:29I'm going to stick with that. So, I
  4852. 3:03:31think one thing that we'll have to do is
  4853. 3:03:33I'll have to move the tradeable a bit
  4854. 3:03:34more to the left cuz I don't like that.
  4855. 3:03:36Maybe something like 0.73 works. And
  4856. 3:03:39yeah, that looks pretty nice. So, let's
  4857. 3:03:41just quickly go ahead and make the
  4858. 3:03:43traits on top of the tradeable. Um,
  4859. 3:03:45let's go and make a frame right here.
  4860. 3:03:49Let's put it in the center. And let's
  4861. 3:03:52maybe position it right here.
  4862. 3:03:56And then we have to make the overview
  4863. 3:04:00visible again so that we can copy
  4864. 3:04:02nicely. Uh let's put it 0.6 as we had
  4865. 3:04:05before.
  4866. 3:04:09Now let's quickly go ahead and add a UI
  4867. 3:04:12list layout inside. This time the list
  4868. 3:04:14layout field direction is going to be
  4869. 3:04:15horizontal and it's going to start from
  4870. 3:04:17the right side. So horizontal alignment
  4871. 3:04:19is going to be right. Vertical alignment
  4872. 3:04:21is going to be center. And then let's go
  4873. 3:04:24in and add [music] our traits. So since
  4874. 3:04:25we have already exported our traits, uh
  4875. 3:04:28imported our traits, sorry. We're going
  4876. 3:04:30to come here and select both of these.
  4877. 3:04:32And then we can just duplicate them and
  4878. 3:04:34put them inside this one. There we go.
  4879. 3:04:37Uh one thing that we're going to do is
  4880. 3:04:38we're just going to resize them.
  4881. 3:04:40Something like this. And then we are
  4882. 3:04:43going to lower the padding.
  4883. 3:04:49So let's quickly go ahead and duplicate
  4884. 3:04:51this. Put it inside of the main frame
  4885. 3:04:53that we had earlier. So now that we did
  4886. 3:04:55that, we are going to quickly reclass
  4887. 3:04:57this into a frame. And then we are going
  4888. 3:05:00to uh make sure that we can easily
  4889. 3:05:03increase the trade size. We won't need a
  4890. 3:05:05UI aspect ratio constraint for this. Uh
  4891. 3:05:07we can just easily go ahead and keep it
  4892. 3:05:10for that one. And then we can increase
  4893. 3:05:12the size. Let's go with something like
  4894. 3:05:141.1 perhaps. I like that. Uh, next thing
  4895. 3:05:17that we have to do is we can just simply
  4896. 3:05:19duplicate that and then put a trait
  4897. 3:05:21inside of that one, the new one. Uh,
  4898. 3:05:23let's delete the old one and remove the
  4899. 3:05:26aspect ratio constraint. And there we
  4900. 3:05:28go. That looks pretty nice. Uh, let's
  4901. 3:05:30change the size to something like 1.2 as
  4902. 3:05:32well. Maybe 1.1. And that looks perfect.
  4903. 3:05:35So, what we're going to do next is we
  4904. 3:05:37are going to simply go ahead and change
  4905. 3:05:39the padding to something like zero. So,
  4906. 3:05:41one issue that we have is that the image
  4907. 3:05:43labels in both of them are not centered.
  4908. 3:05:45Let's quickly go ahead and do that. As
  4909. 3:05:47we can see, the problem is now solved.
  4910. 3:05:49Um, we're just going to lower the
  4911. 3:05:51padding.
  4912. 3:05:54So, that's nice. I'm going to lower the
  4913. 3:05:57padding to somethingus 0.05.
  4914. 3:06:00So, that looks pretty nice to me. Um,
  4915. 3:06:02after a lot of like, you know, small
  4916. 3:06:03minor adjustments, we finally got the
  4917. 3:06:05desired result. Uh, let's go and enable
  4918. 3:06:07our overview and see how different that
  4919. 3:06:09is. That looks pretty much the same. As
  4920. 3:06:11you can see, uh, the positions are
  4921. 3:06:13swapped. So, I'm going to quickly unswap
  4922. 3:06:15them. What we're going to do is we are
  4923. 3:06:16going to come to the trophy and change
  4924. 3:06:18the layout order to one. And that has
  4925. 3:06:20fixed it. As you can see, I'll probably
  4926. 3:06:21move the traits a bit more to the left.
  4927. 3:06:24Um, if you were to open overview real
  4928. 3:06:25fast, we can see that it's pretty much
  4929. 3:06:27the same. It's the exact same thing that
  4930. 3:06:29we wanted. So, now that we're done with
  4931. 3:06:31the top right container, what we're
  4932. 3:06:32going to do is we are going to instantly
  4933. 3:06:34click on ultra scale. Um, we're going to
  4934. 3:06:37go ahead and remove the UI paddings from
  4935. 3:06:39all of these text labels since we don't
  4936. 3:06:40want it. Uh, but it's possible by the
  4937. 3:06:43time you're watching this video, this
  4938. 3:06:44feature doesn't even exist in the
  4939. 3:06:45plug-in because I simply don't like it.
  4940. 3:06:47If you've laid out the UI nicely, you
  4941. 3:06:49won't even need to add UI paddings to
  4942. 3:06:52your uh GUI. So, it's not necessary. So,
  4943. 3:06:55you don't have to worry about this. So,
  4944. 3:06:56yeah, we're going to just quickly delete
  4945. 3:06:58the UI paddings. And, uh, from what we
  4946. 3:07:00can see, this looks pretty nice. So, I'm
  4947. 3:07:02just going to simply go ahead [music]
  4948. 3:07:04and, uh, minimize this. Uh, one thing
  4949. 3:07:07that we're going to do, the same thing
  4950. 3:07:08that we did with our main inventory, is
  4951. 3:07:10we are going to add an aspect ratio
  4952. 3:07:11constraint to this.
  4953. 3:07:14And once we're done with that, let's
  4954. 3:07:16quickly go ahead and start with our
  4955. 3:07:20lower frame. So, let's just quickly
  4956. 3:07:22duplicate this. And then we are just
  4957. 3:07:24going to lower the y-axis instead of
  4958. 3:07:27doing anything else. Let's just go and
  4959. 3:07:29put maybe 0.8 0.82. And then we're going
  4960. 3:07:33to rename this to bottom right. Let's
  4961. 3:07:36delete everything apart from the texture
  4962. 3:07:38because we won't be needing anything
  4963. 3:07:39else. And then for the texture, let's go
  4964. 3:07:41ahead and put bottom right container.
  4965. 3:07:43Copy ID and then paste it.
  4966. 3:07:47As we can see, it looks pretty nice. Uh
  4967. 3:07:49all we'll have to do now is we just have
  4968. 3:07:51to resize it until it looks nice. Uh one
  4969. 3:07:54thing that we will be doing is we have
  4970. 3:07:55to enable the overview so that we can
  4971. 3:07:57match the proper size to it. And then
  4972. 3:07:59let's click on bottom right. And let's
  4973. 3:08:02just manually position it just a bit. So
  4974. 3:08:04something like this. And then something
  4975. 3:08:06like this. Looks nice to me. And then
  4976. 3:08:09let's just make the texture a bit
  4977. 3:08:11smaller after positioning it in the
  4978. 3:08:13center. Something like 1.2
  4979. 3:08:16[clears throat] 1.3.
  4980. 3:08:19We need to add the buttons. What we're
  4981. 3:08:21going to do is we are going to use UI
  4982. 3:08:23list layout and not UI grid layout for
  4983. 3:08:25the buttons. It's much easier to work
  4984. 3:08:27with UI list layout and it's just easier
  4985. 3:08:30overall and more convenient and faster.
  4986. 3:08:32So let's do that. Um, we're going to
  4987. 3:08:34quickly uh go in inventory details
  4988. 3:08:37bottom right and we're going to make a
  4989. 3:08:38new texture uh frame. Let's put this in
  4990. 3:08:41the center and let's play around with
  4991. 3:08:44the size.
  4992. 3:08:47Let's go ahead and add an image button
  4993. 3:08:49inside of this. Uh let's quickly uh put
  4994. 3:08:53this in the center. Remove background
  4995. 3:08:55fit to parent size and add a UI list
  4996. 3:08:57layout as well.
  4997. 3:08:59Uh the normal settings for the UI list
  4998. 3:09:02layout are okay, but we need to change
  4999. 3:09:04the fill direction to horizontal and
  5000. 3:09:06then turn on wraps. So what this
  5001. 3:09:08essentially does is that it's going to
  5002. 3:09:10go like this. 1 2 3 4 5 6. So it's going
  5003. 3:09:13to do it in a sort of a a toz manner
  5004. 3:09:16from left to right. So what we're going
  5005. 3:09:18to do quickly is we are going to make
  5006. 3:09:19the size of this a bit small and make it
  5007. 3:09:22match what we want. So let's go and put
  5008. 3:09:25this like this and then reduce this to
  5009. 3:09:28something like that. Once we have that
  5010. 3:09:30we are just going to simply go inside of
  5011. 3:09:32it and add an image label to this image
  5012. 3:09:35label inside of it and then put this in
  5013. 3:09:37the center fit to parent size. Change
  5014. 3:09:39the scale type to fit and then we are
  5015. 3:09:42going to make it a bit bigger. Something
  5016. 3:09:44like 1.1 or maybe 1.1 on the x-axis and
  5017. 3:09:481.3 on the y- axis or 1.25 on the y
  5018. 3:09:51axis. And then we are going to simply
  5019. 3:09:54put the equip button texture. So the
  5020. 3:09:58equip button texture is right here.
  5021. 3:10:00That's the green one. And let's go and
  5022. 3:10:03quickly put that. There we go. Let's
  5023. 3:10:05call this texture. And um what we're
  5024. 3:10:09going to do next is we are just going to
  5025. 3:10:10simply uh click on overview and then
  5026. 3:10:13change the transparency to zero. Let's
  5027. 3:10:16hide and unhide it fast to see [music]
  5028. 3:10:18if it's the same. Oh, we forgot to
  5029. 3:10:20remove the background. Uh let's quickly
  5030. 3:10:22remove background and remove background
  5031. 3:10:24for the image button as well
  5032. 3:10:26and change the image transparency of the
  5033. 3:10:28main frame to one. And now let's quickly
  5034. 3:10:31compare both of them. And it needs to be
  5035. 3:10:34made a bit bigger. So what we're going
  5036. 3:10:35to do is we are going to come here and
  5037. 3:10:37increase the size to something like
  5038. 3:10:39perhaps 1.3 1.4 1.5
  5039. 3:10:44and just keep this a bit small. 1.2.
  5040. 3:10:46Okay. Let's compare now. And it looks
  5041. 3:10:49pretty much the same. So this is what
  5042. 3:10:50we're going to go with. Uh, one thing
  5043. 3:10:52that we're going to add before
  5044. 3:10:53proceeding is we are going to add a text
  5045. 3:10:54label. Maybe just copy the one that we
  5046. 3:10:57made earlier here. Uh, let's go and copy
  5047. 3:11:00this and then put this inside of this
  5048. 3:11:02right here. Uh, we're going to reduce
  5049. 3:11:04the Z-index of the texture to zero just
  5050. 3:11:07to make sure we don't run into problems.
  5051. 3:11:09And then we are going to increase the UI
  5052. 3:11:12stroke scale size to 0.13
  5053. 3:11:170.12 maybe. I like that. So let's just
  5054. 3:11:20quickly go ahead and duplicate this six
  5055. 3:11:23times like this. And now we're going to
  5056. 3:11:26play around with the padding. Um the
  5057. 3:11:28padding can just become something like
  5058. 3:11:310.1.05
  5059. 3:11:340.06
  5060. 3:11:370.07
  5061. 3:11:390.08.
  5062. 3:11:41Nope. 0.07 looks perfectly fine. So this
  5063. 3:11:44is what our main thing is going to look
  5064. 3:11:46like. Uh, we can also go ahead and just
  5065. 3:11:48put the horizontal alignment to center
  5066. 3:11:49and then the vertical alignment center
  5067. 3:11:51as well to make sure that it's perfectly
  5068. 3:11:53in the center. This is a optional thing
  5069. 3:11:55that you guys can do if you want. Um,
  5070. 3:11:57let's go back and start coloring them
  5071. 3:11:59the way that they should be colored.
  5072. 3:12:00Let's enable overview. So, it goes
  5073. 3:12:03green, blue, red, pink. Let's just put
  5074. 3:12:06these ones for now. Green. And the next
  5075. 3:12:08one is going to be blue. So, let's go
  5076. 3:12:09and put this one blue.
  5077. 3:12:13Okay. So, we're going to change this to
  5078. 3:12:16merge. Change this to sell. Change this
  5079. 3:12:20to equip
  5080. 3:12:23and change this to lock
  5081. 3:12:27and go back and see the differences.
  5082. 3:12:30Yeah, looks pretty nice. Uh, feed and
  5083. 3:12:32upgrade are also going to be present
  5084. 3:12:33there. So, let's just change this to
  5085. 3:12:34feed and upgrade.
  5086. 3:12:39Upgrade.
  5087. 3:12:41And there we go. This is the exact
  5088. 3:12:42buttons that we need. So, let's just go
  5089. 3:12:45back here and then change this to equip.
  5090. 3:12:50One thing that we need to do is we also
  5091. 3:12:51need to make this the unequip button.
  5092. 3:12:53So, we're just going to call it equip
  5093. 3:12:55unequip. We're going to call this lock
  5094. 3:12:58unlock.
  5095. 3:13:00We're going to call this feed.
  5096. 3:13:02Going to call this upgrade.
  5097. 3:13:05Call this merge. And then call this
  5098. 3:13:08cell. So in uh equip unequip, one thing
  5099. 3:13:11that we're going to do is we are going
  5100. 3:13:13to simply go ahead and duplicate the
  5101. 3:13:14texture. Uh we're going to call this
  5102. 3:13:17texture unequip and call this texture
  5103. 3:13:20equip just for the sake of scriptors to
  5104. 3:13:23make their life easier. Uh the
  5105. 3:13:24unequipped texture is going to be the
  5106. 3:13:27red color. So I'm just going to copy the
  5107. 3:13:29ID and then put this texture right here.
  5108. 3:13:32And I'm just going to hide this because
  5109. 3:13:34we don't need this. This is also only
  5110. 3:13:37going to be when the unit has been
  5111. 3:13:38equipped and needs to be unequipped in
  5112. 3:13:40the actual game. So yeah, that's what
  5113. 3:13:43we're going to do. Um, next up, what
  5114. 3:13:45we're going to do is we are just going
  5115. 3:13:46to simply duplicate this as well. Let's
  5116. 3:13:48call this texture lock and call this
  5117. 3:13:50texture unlock. So in unlocking the
  5118. 3:13:54color that I want it to be is going to
  5119. 3:13:56be the same. So I'm not going to be
  5120. 3:13:58changing that at all. Um, I'm just going
  5121. 3:14:00to quickly go and hide this. And yeah,
  5122. 3:14:02that's pretty much how it looks like. So
  5123. 3:14:03now our buttons are very close to the
  5124. 3:14:06actual size that they need to be. As you
  5125. 3:14:08can see, the mouse only turns into the
  5126. 3:14:11clicking button when I move my mouse on
  5127. 3:14:13top of the button and not outside of it,
  5128. 3:14:15which is exactly what we need. It's
  5129. 3:14:17going to be very good for animations as
  5130. 3:14:18well. So let's just go and call this
  5131. 3:14:20buttons and make sure that the Z-index
  5132. 3:14:22is on top of it, which it is. So that's
  5133. 3:14:25perfect. So what we're going to do now
  5134. 3:14:27is collapse this. So next up what we're
  5135. 3:14:28going to do is we are just going to
  5136. 3:14:29click quickly click on bottom right and
  5137. 3:14:32then click on ultra scale. One thing
  5138. 3:14:34that we need to do is we have to go
  5139. 3:14:35through all of these and let's just
  5140. 3:14:38quickly hierarchy select children and
  5141. 3:14:41then unselect the UI strokes
  5142. 3:14:45right here.
  5143. 3:14:48Uh you can see we have six of the text
  5144. 3:14:49labels and it says right here six items.
  5145. 3:14:52So, we probably did something right. And
  5146. 3:14:54now we can just press delete and the
  5147. 3:14:55padding gets deleted. [music]
  5148. 3:14:57Again, this feature might not be in the
  5149. 3:14:59plug-in by the time you're using it
  5150. 3:15:01because I will have it removed soon. So,
  5151. 3:15:03you don't have to worry about that. So,
  5152. 3:15:04yeah, let's just quickly go back,
  5153. 3:15:07collapse all of this, collapse the main
  5154. 3:15:10buttons,
  5155. 3:15:13and then collapse the main button frame,
  5156. 3:15:16and then this. And yeah, that's pretty
  5157. 3:15:18much it. That's our bottom right
  5158. 3:15:20container solved. Uh next thing that
  5159. 3:15:22we're going to add is that we are going
  5160. 3:15:24to simply um go and add another uh we're
  5161. 3:15:28going to duplicate the texture frame and
  5162. 3:15:30then we are going to call this the sort
  5163. 3:15:32of shadow that we have. So it's not
  5164. 3:15:34exactly a shadow but that's what I call
  5165. 3:15:36it. So what we're going to do is we are
  5166. 3:15:38going to simply make the size to one.
  5167. 3:15:43And then we are going to copy the
  5168. 3:15:44container bottom right shadow. And I'm
  5169. 3:15:46going to put this right here. Uh the
  5170. 3:15:50z-index of this is going to change to
  5171. 3:15:52minus2 or minus 10 maybe just to be
  5172. 3:15:55safe. This has to be below everything
  5173. 3:15:56else. So let's go and quickly do that.
  5174. 3:15:59Um we are going to make this a bit
  5175. 3:16:01bigger.
  5176. 3:16:08So this is that for our bottom right
  5177. 3:16:10side. Um, one thing that we're going to
  5178. 3:16:12do now is we are going to simply come
  5179. 3:16:15here to the top right after copying the
  5180. 3:16:19[music] shadow and then paste the shadow
  5181. 3:16:20in the top right. So all we have to do
  5182. 3:16:22now is we have to copy the container top
  5183. 3:16:24right shadow put this in the shadow here
  5184. 3:16:26and then we can move it down something
  5185. 3:16:29like
  5186. 3:16:33I really like how this looks. Uh, one
  5187. 3:16:35thing that we're going to quickly go
  5188. 3:16:36ahead and do is we are going to make the
  5189. 3:16:38shadows on both of these a bit smaller
  5190. 3:16:40just for the sake of um
  5191. 3:16:43not going out of the boundaries that we
  5192. 3:16:46wanted to go out of.
  5193. 3:16:49So, we're going to stick with these
  5194. 3:16:51values for these ones. Um, this looks
  5195. 3:16:53pretty nice to me. Uh one thing that
  5196. 3:16:54we're going to remember is that now
  5197. 3:16:57since we want the viewport frames to be
  5198. 3:16:59beneath this uh container, there's going
  5199. 3:17:01to be an issue that's going to be
  5200. 3:17:02caused. Uh this shadow is going to
  5201. 3:17:05overlap the viewport frame. So we have
  5202. 3:17:07multiple ways to solve this. We can just
  5203. 3:17:09put the viewport frame inside of the
  5204. 3:17:11bottom right instead of making it inside
  5205. 3:17:13of the inventory details. So that's what
  5206. 3:17:15we're going to do. Let's open the bottom
  5207. 3:17:17right one again and add a viewport
  5208. 3:17:19frame.
  5209. 3:17:20Now what we're going to do is we are
  5210. 3:17:22going to put this viewport frame below
  5211. 3:17:24the texture but above the shadow. So the
  5212. 3:17:25texture zindex as we can see zero shadow
  5213. 3:17:28is minus 10. So we're going to put the
  5214. 3:17:30viewport frame Z index to minus 5. And
  5215. 3:17:32then let's position this a bit bigger.
  5216. 3:17:35Something like this.
  5217. 3:17:38And now I'm going to remove the
  5218. 3:17:40background. I'm going to put the
  5219. 3:17:42background color to something like 100.
  5220. 3:17:45This is just to make sure that the
  5221. 3:17:46render inside of the viewport frame or
  5222. 3:17:48the character inside of the viewport
  5223. 3:17:49frame, the model won't have a white
  5224. 3:17:51outline. So once we're done with that,
  5225. 3:17:53let's just quickly go and make sure that
  5226. 3:17:56the viewport frame is scaled. Yes, it
  5227. 3:17:58is. Next, what we're going to do is we
  5228. 3:17:59are going to rename the viewport frame
  5229. 3:18:01to something like unit. And now we're
  5230. 3:18:05going to add these favorite and lock
  5231. 3:18:07icons. So just for the sake of our own
  5232. 3:18:10comfort, what we're going to do is we
  5233. 3:18:11are going to uh hide overview real fast.
  5234. 3:18:15Come here and select this. As if you
  5235. 3:18:17remember, we had this access trait and
  5236. 3:18:20stuff that we made a while ago. So we
  5237. 3:18:22can just copy that and put it here to
  5238. 3:18:23speed up the process. I'm going to come
  5239. 3:18:25in inventory details and shift V,
  5240. 3:18:28control shift V that and make it
  5241. 3:18:30smaller. So I'm going to put it
  5242. 3:18:32somewhere around there. and then put the
  5243. 3:18:35position to something 0.1.
  5244. 3:18:38So in the axis, what we're going to do
  5245. 3:18:40now is we are going to change the
  5246. 3:18:42equipped icon to the favorite icon. So
  5247. 3:18:45in order to do that, we're just going to
  5248. 3:18:47go and delete the equipped and we are
  5249. 3:18:49going to copy the favorite icon. So
  5250. 3:18:52let's just hide the overview real fast.
  5251. 3:18:54Click on the favorite. Ctrl + C it. Come
  5252. 3:18:56back here and control shiftV. We're
  5253. 3:18:59going to resize it.
  5254. 3:19:04So now the next thing that we're going
  5255. 3:19:06to be doing is we are going to um add
  5256. 3:19:09the statistics on the right side that we
  5257. 3:19:11remember that we saw in our overview.
  5258. 3:19:12Remember throughout the entire process
  5259. 3:19:15keep pressing Ctrl S
  5260. 3:19:18collapsing everything. And now we're
  5261. 3:19:19going to collapse the main inventory.
  5262. 3:19:21Come here and then enable overview
  5263. 3:19:24again. Now we are going to come to the
  5264. 3:19:26inventory details and let's make the
  5265. 3:19:29statistics on the right side that we
  5266. 3:19:30see. Um, we are going to simply come to
  5267. 3:19:33the inventory details and then add a
  5268. 3:19:35frame
  5269. 3:19:37and then size it.
  5270. 3:19:41Um, what we're going to do next is let's
  5271. 3:19:43go inside and add a UI list layout. The
  5272. 3:19:46UI list layout is going to be vertical
  5273. 3:19:48and horizontal alignment is going to be
  5274. 3:19:49center. Uh, and yeah, so next thing that
  5275. 3:19:53we're going to be doing is let's add a
  5276. 3:19:55frame inside of it again. And now we're
  5277. 3:19:58going to position the frame however we
  5278. 3:20:00want to. So the size is going to be
  5279. 3:20:02scaled. Let's just quickly put the
  5280. 3:20:04sizing that we think. I know that the
  5281. 3:20:06size of the X-axis is going to be
  5282. 3:20:08maximum one so that it completely covers
  5283. 3:20:11the main frame that we had on the
  5284. 3:20:13X-axis. And then I'm going to manually
  5285. 3:20:15position the frame. Something like this.
  5286. 3:20:18And now what we're going to do is we are
  5287. 3:20:21going to add another frame inside of
  5288. 3:20:23this. Center it fit to parent size.
  5289. 3:20:30That actually looks pretty good to me.
  5290. 3:20:31So, what we're going to do is we're
  5291. 3:20:32going to add a UI stroke to it. Now, uh
  5292. 3:20:34the UI stroke is going to be around 3
  5293. 3:20:36pixels wide. So, let's do that. And then
  5294. 3:20:39scale the UI stroke real fast.
  5295. 3:20:42And that's that. Um next step is going
  5296. 3:20:45to simply be to make another frame
  5297. 3:20:48inside of this. And then we are going to
  5298. 3:20:51make this frame smaller by holding shift
  5299. 3:20:53and then dragging it smaller.
  5300. 3:20:56Let's color it fully black for a bit.
  5301. 3:21:00And then let's lower the transparency to
  5302. 3:21:02something like 0.7.
  5303. 3:21:04Now what we have to do is we have to
  5304. 3:21:05make a very nice little sort of shadow
  5305. 3:21:08on the frame. So all we're going to do
  5306. 3:21:11is we are going to select it again
  5307. 3:21:14right here. This one. And then we are
  5308. 3:21:17going to change the Z index default to
  5309. 3:21:19two. And then we're going to make the
  5310. 3:21:21size to something like 0.9.
  5311. 3:21:24And then the size of the Y to something
  5312. 3:21:25like 0.7. Maybe make it a bit bigger.
  5313. 3:21:28Something like this. Or maybe a bit
  5314. 3:21:30smaller. 0.91 works. There we go. Um,
  5315. 3:21:33one thing that we're going to do is we
  5316. 3:21:34are going to hide the overview so that
  5317. 3:21:36we can easily see what we're trying to
  5318. 3:21:37do. And that looks pretty nice to me.
  5319. 3:21:40Um, the next step that we have is let's
  5320. 3:21:42quickly center that. And let's call this
  5321. 3:21:44uh dark. Let's keep this as um texture.
  5322. 3:21:51So the next step that we have is going
  5323. 3:21:53to simply be to uh change the UI
  5324. 3:21:56gradient of the texture. Let's go and
  5325. 3:21:58add a UI gradient to this. Enable
  5326. 3:22:00overview. And now we're going to see the
  5327. 3:22:01values. So if we go to zero image
  5328. 3:22:04transparency, we are going to copy these
  5329. 3:22:06two gradients. This is on a 135 angle.
  5330. 3:22:08So it's going to be like this. I'm going
  5331. 3:22:10to click on the UI gradient. Click on
  5332. 3:22:12these two values right here. Somewhere
  5333. 3:22:15here. Pick screen color. Going to select
  5334. 3:22:18this right here. It's actually going to
  5335. 3:22:20be something like this. And the next one
  5336. 3:22:23is going to be something like
  5337. 3:22:26this.
  5338. 3:22:27Going to make it a bit brighter.
  5339. 3:22:29Something here.
  5340. 3:22:32And there we go. Um, what I'm going to
  5341. 3:22:34do is I'm going to change the rotation
  5342. 3:22:35to 135. And let's see how it looks. So,
  5343. 3:22:38I'm going to close this real quick and
  5344. 3:22:40then hide the overview.
  5345. 3:22:43As we can see, it's a bit different from
  5346. 3:22:45what we have. This is because of the
  5347. 3:22:46rotation. I think it's minus. I think
  5348. 3:22:49it's going to be 135. Nope.
  5349. 3:22:53So, the rotation is actually meant to be
  5350. 3:22:5545 if I remember right. That's a mistake
  5351. 3:22:58on my end. Let's go ahead and compare.
  5352. 3:23:00And yeah, there we go. It's very uh
  5353. 3:23:02similar to what we had earlier. Um we
  5354. 3:23:05are going to increase the transparency
  5355. 3:23:08or sorry decrease the transparency of
  5356. 3:23:10this dark frame. Put the 0.5. And now
  5357. 3:23:13compare both of them.
  5358. 3:23:16And yeah, that looks very very similar.
  5359. 3:23:18So I think I'm going to make reduce the
  5360. 3:23:20transparency even more. Something like
  5361. 3:23:230.45
  5362. 3:23:25maybe. That looks nice to me. Okay, now
  5363. 3:23:27we are going to be adding the text and
  5364. 3:23:29everything on top of this. Let's go and
  5365. 3:23:30add the text label right here. Um, we
  5366. 3:23:33are going to be removing the background.
  5367. 3:23:35Enable text scale. And then we are going
  5368. 3:23:38to make the size a bit smaller.
  5369. 3:23:43And yeah, looks very very similar for mo
  5370. 3:23:45the most part.
  5371. 3:23:47So let's just quickly go and duplicate
  5372. 3:23:49this as well after reducing the size a
  5373. 3:23:52bit and then call this uh tier. So the
  5374. 3:23:57tier is going to become very much
  5375. 3:23:59smaller. Uh let's put this in the center
  5376. 3:24:01for now and change [music] the text
  5377. 3:24:04alignment to center.
  5378. 3:24:07What we're going to do is we are going
  5379. 3:24:08to simply copy the gradient and put this
  5380. 3:24:10in the tier. So there we go. That's the
  5381. 3:24:12intended uh thing that we wanted. Let's
  5382. 3:24:15enable the overview and see the
  5383. 3:24:16difference. The tier has to be made a
  5384. 3:24:18bit bigger. So that's what we're going
  5385. 3:24:19to do.
  5386. 3:24:22So I'm really satisfied with that
  5387. 3:24:23result. Um what we're going to do next
  5388. 3:24:25is let's just quickly name this to
  5389. 3:24:27damage
  5390. 3:24:30and remember to save. Uh what we're
  5391. 3:24:32going to do next is we're just going to
  5392. 3:24:33add an image label and then put this in
  5393. 3:24:35the center. Remove background. [music]
  5394. 3:24:38Change the Z index to something like
  5395. 3:24:40four perhaps or maybe three. and then
  5396. 3:24:43change the value and tier to four if you
  5397. 3:24:46want the text to always stay on the top.
  5398. 3:24:48And then we are going to make this a bit
  5399. 3:24:50smaller.
  5400. 3:24:52So now what we're going to do is we're
  5401. 3:24:54going to simply enable overview and
  5402. 3:24:55compare to our existing frame. Let's
  5403. 3:24:58[music] change the transparency to 0.6.
  5404. 3:25:01Now we are going to simply make this a
  5405. 3:25:04bit smaller. This looks nice. And then
  5406. 3:25:07the rest we are going to do in our
  5407. 3:25:09existing frame and not copy because the
  5408. 3:25:13resolution is a bit different. So we are
  5409. 3:25:15going to simply make sure that the Y is
  5410. 3:25:16always in the center. Then we are going
  5411. 3:25:19to move this a bit more to the right.
  5412. 3:25:21There we go. We're going to probably
  5413. 3:25:24make this a bit smaller as well. 68
  5414. 3:25:26looks nice. And then we are going to
  5415. 3:25:28simply remove background. And then
  5416. 3:25:30change this to icon and then copy the
  5417. 3:25:33damage icon. Icon damage. and then put
  5418. 3:25:37it right here. And there we go. That
  5419. 3:25:39looks very nice. We're going to change
  5420. 3:25:40the scale type to fit. And we going to
  5421. 3:25:43make this probably a bit bigger.
  5422. 3:25:45Something [music] like 70 or 72. And
  5423. 3:25:48that looks great. We are going to
  5424. 3:25:50quickly click on damage and then ultra
  5425. 3:25:52scale everything. We're going to delete
  5426. 3:25:54the UI paddings. As I mentioned earlier,
  5427. 3:25:57this feature won't exist for long, so
  5428. 3:25:59you don't have to worry about that.
  5429. 3:26:01And yeah, that looks very beautiful. For
  5430. 3:26:04the most part, it's completely the same
  5431. 3:26:06as to what we had in our existing UI in
  5432. 3:26:10our third party software. Let's compare
  5433. 3:26:11both of them with zero transparency. And
  5434. 3:26:14yeah, as we can see, pretty much the
  5435. 3:26:16same.
  5436. 3:26:18What we're going to do now is we're
  5437. 3:26:19going to simply duplicate this uh three
  5438. 3:26:22times just to match what we had. Uh
  5439. 3:26:25we're going to make sure that the third
  5440. 3:26:26frames bottom hits right here. So, what
  5441. 3:26:29we're going to do is we are going to put
  5442. 3:26:31this in the center.
  5443. 3:26:34uh in the vertical alignment and then we
  5444. 3:26:36are going to increase the padding to
  5445. 3:26:38something like 0.05.
  5446. 3:26:40Let's compare now. Almost there. We're
  5447. 3:26:42going to increase it just a bit more.
  5448. 3:26:43Something 0.052
  5449. 3:26:46or 0. Yep.
  5450. 3:26:49There we go. Something 53. That looks
  5451. 3:26:52nice. So, I'm going to stick with this
  5452. 3:26:54one. Um I'm going to change this to uh
  5453. 3:26:57spa and then this to range. I'm going to
  5454. 3:27:01change the layout order to zero one and
  5455. 3:27:06then two. We're going to enable overview
  5456. 3:27:08again.
  5457. 3:27:13And as we can see um we are just going
  5458. 3:27:16to copy the icons and the gradients and
  5459. 3:27:18then we should be done. Let's just
  5460. 3:27:20quickly hide this and then change the
  5461. 3:27:22icons. First of all going to come here,
  5462. 3:27:24copy the icon spa.
  5463. 3:27:27For those of you that might be
  5464. 3:27:28wondering, SPA means seconds per attack.
  5465. 3:27:31It's basically the cool down between
  5466. 3:27:32each move that a unit has in a tower
  5467. 3:27:34defense game. So, let's copy the icon
  5468. 3:27:36RNG. RNG means range, how far a unit
  5469. 3:27:40fires or attacks. So, there we go. These
  5470. 3:27:43are our three icons. I'm going to
  5471. 3:27:45quickly go ahead and just for the sake
  5472. 3:27:47of it, I'm going to make the range icon
  5473. 3:27:50just a bit smaller, something like 68.
  5474. 3:27:53And then I'm going to scale the size
  5475. 3:27:54again.
  5476. 3:27:57right there. Um, and next up, what we're
  5477. 3:27:59going to be doing is we're going to copy
  5478. 3:28:01the colors. So, let's just quickly
  5479. 3:28:04enable overview.
  5480. 3:28:13So, one thing that I have to add now, if
  5481. 3:28:15you guys remember, is that in our
  5482. 3:28:17overview,
  5483. 3:28:18we have sort of this white shadow or
  5484. 3:28:21like this trail that goes on the left
  5485. 3:28:23side of the bars. So what we're going to
  5486. 3:28:24do for that is simple. We're going to
  5487. 3:28:26come to the damage part, damage frame
  5488. 3:28:29for example. And then we're going to add
  5489. 3:28:31a frame. We're going to position this to
  5490. 3:28:33fit to parent size.
  5491. 3:28:38And now we are going to simply add a UI
  5492. 3:28:40gradient to this.
  5493. 3:28:43And we are going to change the rotation
  5494. 3:28:45to 180. And we're going to go to the
  5495. 3:28:47transparency and raise this to the full.
  5496. 3:28:51There we go. Um, this looks pretty
  5497. 3:28:53similar to what I had in mind. Um, I'm
  5498. 3:28:55going to also reduce the main
  5499. 3:28:58transparency of the background
  5500. 3:28:59transparency to 0.5 as well. Um, perhaps
  5501. 3:29:03I'm going to change the size to
  5502. 3:29:04something like 0.3 and maybe drag it out
  5503. 3:29:08a bit more. And now we're going to
  5504. 3:29:09compare with the overview.
  5505. 3:29:12And it looks pretty much the same. I'm
  5506. 3:29:13going to lower it a bit more so it's
  5507. 3:29:16less opaque. Um, I'm going to come here
  5508. 3:29:18and change the background transparency
  5509. 3:29:20to something like 0.6. six or 0.65 looks
  5510. 3:29:23nice. Maybe something like 0.7 actually.
  5511. 3:29:26There we go. I'm going to call this
  5512. 3:29:28trail. I'm going to make sure it's
  5513. 3:29:30scaled. It is. And now I'm going to copy
  5514. 3:29:33this into both of the other ones as
  5515. 3:29:34well. There we are. So, that's our UI
  5516. 3:29:37basically done. Um, one thing that we're
  5517. 3:29:39going to see now is how well it scales
  5518. 3:29:41across different devices. When you're
  5519. 3:29:43done making UI, there are chances, there
  5520. 3:29:46are times that you might have done it a
  5521. 3:29:48bit wrong, and you can easily assess
  5522. 3:29:50that by fixing your mistakes after
  5523. 3:29:51you're done. So, let's go ahead and do
  5524. 3:29:53that. Um, we're going to hide all of
  5525. 3:29:55this. We're going to hide this as well.
  5526. 3:29:58Uh, we're going to enable overview. See
  5527. 3:30:00if everything is the same. It is the
  5528. 3:30:02same for the most part. There are minor
  5529. 3:30:03differences here and there that are not
  5530. 3:30:05really something that we need to worry
  5531. 3:30:07about. The UI looks pretty similar for
  5532. 3:30:09the most part, which is a beautiful
  5533. 3:30:10thing. This is the moment of truth. We
  5534. 3:30:12are going to see how the UI looks on
  5535. 3:30:14different devices. So, let's click on
  5536. 3:30:16this and change to VGA. As we can see,
  5537. 3:30:19there are some problems. Um, the close
  5538. 3:30:22button is becoming way too big and the
  5539. 3:30:23statistics are not properly scaling. I
  5540. 3:30:26think everything else is okay. So, let's
  5541. 3:30:27go back. Uh, we're going to go in the
  5542. 3:30:30container frame main inventory and we're
  5543. 3:30:32going to search for the close button. As
  5544. 3:30:34we can see the close button, we forgot
  5545. 3:30:35to scale it. So, we're going to quickly
  5546. 3:30:37scale that. Problem should be fixed. If
  5547. 3:30:39we go back to the inventory details and
  5548. 3:30:41statistics, we can see that we forgot to
  5549. 3:30:43scale this as well. Let's scale this
  5550. 3:30:45real fast. And now the problem should be
  5551. 3:30:47solved. So let's go back and click on
  5552. 3:30:49VGA. As we can see, the entire UI has
  5553. 3:30:52been scaled perfectly fine. There is no
  5554. 3:30:54issue with anything. We can also try on
  5555. 3:30:56mobile just to be safe. Um, and there we
  5556. 3:31:00are. The entire UI has been perfectly
  5557. 3:31:03imported without any problems. One minor
  5558. 3:31:05thing that you guys might be noticing is
  5559. 3:31:07that the scrolling bar thickness becomes
  5560. 3:31:10bigger when you see it on a different
  5561. 3:31:12device. This is uh a studio problem.
  5562. 3:31:15There's no way to scale this in
  5563. 3:31:16properties. The only way to fix this
  5564. 3:31:18issue is by either using a custom
  5565. 3:31:20scrolling bar, you can use a frame or
  5566. 3:31:23the more feasible option is by simply
  5567. 3:31:26getting it scripted. Uh through a
  5568. 3:31:28script, you can make sure that the
  5569. 3:31:29scrolling bar thickness is scaled across
  5570. 3:31:32different devices. you won't have to
  5571. 3:31:34manually try to add a new frame and it's
  5572. 3:31:37much more of a better choice. So yeah,
  5573. 3:31:39that's how you import a UI one to one
  5574. 3:31:41from your third party software into
  5575. 3:31:43Roblox Studio. Manually speaking, it
  5576. 3:31:46does take some time. This is why people
  5577. 3:31:48instead of importing themselves, they
  5578. 3:31:50hire people to import UIs for them. Uh
  5579. 3:31:52you can find UI importers in our Discord
  5580. 3:31:55server, discord.gg/ugen.
  5581. 3:31:56We have a whole channel for importing
  5582. 3:31:58UIs. Um people will do it for you for a
  5583. 3:32:01price. Normally, they charge up to $5.
  5584. 3:32:04Some of them do a very good job at it
  5585. 3:32:06and price it a little bit higher. So,
  5586. 3:32:08it's your decision to make if you want
  5587. 3:32:09to pay people to import your UIs or do
  5588. 3:32:11it yourself. Lastly, guys, thank you for
  5589. 3:32:13watching the video. It was definitely a
  5590. 3:32:14very enjoyable video. I also had a lot
  5591. 3:32:16of fun making it. For more videos like
  5592. 3:32:18this and maybe more debunking shorts or
  5593. 3:32:20videos on how to fix problems, please
  5594. 3:32:23comment and like and subscribe and let
  5595. 3:32:25me know what you guys want. Also, join
  5596. 3:32:27our Discord server, discord.gg/yugen.
  5597. 3:32:30Ugn. We help a lot of new UI designers
  5598. 3:32:33there. The imported version of the
  5599. 3:32:34greatest anime UI tutorial that I made
  5600. 3:32:36in this video is also going to be sold
  5601. 3:32:38on my Gumroad. The link will be in the
  5602. 3:32:41description. So, please go ahead and buy
  5603. 3:32:43that if you guys want to see how I laid
  5604. 3:32:45it out. Apart from that, remember to
  5605. 3:32:46always have fun when you're making UI.
  5606. 3:32:48And yeah, see you.

About this transcript

This page contains the full transcript of Roblox UI Importing Masterclass by Kek, generated from the public captions YouTube serves with the video. The transcript has 41,305 words across 5,606 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.