UI Design Starter Guide

gui
design
guide
ui-design

#22

Such a good tutorial! :open_mouth: Helped out a lot!! :smiley: :smiley: :smiley: :smiley: :smiley:


#23

Probably the best UI tutorial out there. Nice work :grinning:


#24

Although I’m over a year late to the conversation, I’ve got a question.

In regards to changing between the images with ImageRectSize, how would a script like that look like to change between the ImageRectSize and ImageRectOffset?


#25

Is it possible to write a v2 version including constraints?


#26

Nice tutorial I’m going to cut out this example Screenshot_243

To try it out right now.


#27

Great tutorial! Bookmarked for sure.


#28

I don’t have much time but it would like this:

local SPRITE_SIZE_X, SPRITE_SIZE_Y = 32, 32

local function changeSprite(newSpriteIndex) 
    local newSpriteOffset = Vector2.new(newSpriteIndex * SPRITE_SIZE_X, newSpriteIndez * SPRITE_SIZE_Y)
    imageLabel.ImageRectOffset = newSpriteOffset
end

changeSprite(0)
changeSprite(3)

I don’t have time to do more sorry, and this only changes the offset. If you’ve got a good setup then you shouldn’t need to change sizes anyway.

@Tor_Laws
Yeah sure, I’ve been meaning to do something about constraints so I’ll put v2 on my to do list :slight_smile: