Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Looking at code and wondering if you got the buttons correct hurts my head... Is there any way to make GUI making easier?

[shadow=black,right][glow=green,2,300]

uyjulian's website

[/glow][/shadow]

Short of writing a framework to do auto-layout of GUI widgets (it would be a considerable service to the modding community if someone did that!), no, not really.

 

My current technique is to draw a mockup of the GUI using Intaglio, put dimension lines all over it, and then transcribe the dimensions into constants in the code.

 

You can also help yourself by writing code to do some of the layout calculations. For example, if you have a row of buttons all the same size, write a loop to lay them out.

I usually throw one component at a fixed size and location on the screen, then I render it and look at the size of it compared to the screen and other elements. Then i look at my drawing of how I want the GUI to look like, trying to think of which proportions things need to be scaled to in order to fit the screen inn a suitable way.

 

The annoying thing is that once the main setup of the GUI is done, like all the components are inn somewhat correct place and scale and I start to fine tune and adjust small details I have to restart the application(re-run) in order to see the effect which makes it quite tedious. :P

If you guys dont get it.. then well ya.. try harder...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.