feat(assets): use single texture atlas instead of loading all images individually
This commit is contained in:
@@ -128,45 +128,45 @@ onRender((ctx) => {
|
||||
:x="33"
|
||||
:y="25 + getButtonOffset('projects')"
|
||||
:opacity="getOpacity('projects')"
|
||||
:image="assets.home.bottomScreen.buttons.game"
|
||||
:image="assets.images.home.bottomScreen.buttons.game"
|
||||
/>
|
||||
<Button
|
||||
:x="32"
|
||||
:y="72 + getButtonOffset('contact')"
|
||||
:opacity="getOpacity('contact')"
|
||||
:image="assets.home.bottomScreen.buttons.contact"
|
||||
:image="assets.images.home.bottomScreen.buttons.contact"
|
||||
/>
|
||||
<Button
|
||||
:x="128"
|
||||
:y="72 + getButtonOffset('gallery')"
|
||||
:opacity="getOpacity('gallery')"
|
||||
:image="assets.home.bottomScreen.buttons.gallery"
|
||||
:image="assets.images.home.bottomScreen.buttons.gallery"
|
||||
/>
|
||||
|
||||
<Button
|
||||
:x="33"
|
||||
:y="121"
|
||||
:opacity="getOpacity()"
|
||||
:image="assets.home.bottomScreen.buttons.gamePak"
|
||||
:image="assets.images.home.bottomScreen.buttons.gamePak"
|
||||
/>
|
||||
|
||||
<Button
|
||||
:x="10"
|
||||
:y="175 + getButtonOffset('theme')"
|
||||
:opacity="getOpacity('theme')"
|
||||
:image="assets.home.bottomScreen.buttons.theme"
|
||||
:image="assets.images.home.bottomScreen.buttons.theme"
|
||||
/>
|
||||
<Button
|
||||
:x="117"
|
||||
:y="170 + getButtonOffset('settings')"
|
||||
:opacity="getOpacity('settings')"
|
||||
:image="assets.home.bottomScreen.buttons.settings"
|
||||
:image="assets.images.home.bottomScreen.buttons.settings"
|
||||
/>
|
||||
<Button
|
||||
:x="235"
|
||||
:y="175 + getButtonOffset('alarm')"
|
||||
:opacity="getOpacity('alarm')"
|
||||
:image="assets.home.bottomScreen.buttons.alarm"
|
||||
:image="assets.images.home.bottomScreen.buttons.alarm"
|
||||
/>
|
||||
|
||||
<Selector :rect="selectorPosition" :opacity="getOpacity()" />
|
||||
|
||||
Reference in New Issue
Block a user