- Posts: 168
GUI
- MatCat
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
I have removed all warnings except the unused variables, removed all tabs, as far as code style goes I will wait on clarification.
The available options are: K&R, BSD, GNU, Whitesmiths
Generally I don't care too much about code styles as most code I work on is private party stuff and I just use my own style.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Scrollbar
Checkbox
Radial
Dropdown
Number picker
Textbox
Keyboard
AnimatedSprite
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
* making a new style with K&R as the base
* changing indentation to 'spaces only'
* selecting for braces: function -> next line
* selecting for braces: blocks -> next line on wrap
If you setup that style in Eclipse, it will closely math my code. Please only format the files you've created (in the gui dir) as otherwise the merge will be quite difficult.
As far as widgets:
I think we need a 'volume bar' or something equivalent that can be used to show the current position of the sticks.
We'll likely want some sort of x/y graph to allow displaying/setting the expo curves
We'll probably want an 'image button' (where an image, rather than text is shown on the button)
My order of priority would probably be something like:
volume-bar
scrollbar
image button
drowpdown
keyboard w/ entry box
radial button
x/y graph
animated sprite
You may have other methods in mind for the examples I gave above, so feel free to ignore me.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I like the Arial font (font #6), but it is a 10x14 proportional font (as opposed to the 8x8 fixed font we're currently using) and it doesn't center properly on your buttons.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
For buttons I am going to do:
Image Button (I had already planned this one )
Imageless Button (Keyboard can be a bmp)
For analogs, what about a centered (except for throttle) design, which lights up either up, down, left, or right from center point? We can use the same concept for trims too.
I will probably do animated sprites soon, because I am working on doing the boot up / bind segmant which will look spiffy with an animation .
One thing I am worried about is the redraw speed, I hope it is mostly the emulator but I am not sure. I noticed bmps draw very fast, but text draw seems slow, which results in ugly flicker, but then again even the stock firmware has flicker if you mess with it right. I miss the large quanity of ram I am used to with normal PC programming .
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
However, refresh is very slow, and setting ReDraw too frequently makes it unusable (I've disabled setting Redraw except by pressing buttons on the GUI for now. The screen flickers badly during refresh as well.
But all things considered I'm quite happy with it.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
What I am thinking might just be somewhat the same idea you are saying... basically if text changes redraw the portion of image below it only, though this will add a bit of code to figure out what exactly does need to be redrawn.
I am going to contimplate it and see if I can come up with any other alternative ideas... Perhaps look up other devices with open source firmware and see how they handle gui redraw.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
objs/emu_devo8/main.o: In function `main':
/home/matcat/deviation/src/main.c:32: undefined reference to `SOUND_Init'
collect2: ld returned 1 exit status
make: *** [emu_devo8.elf] Error 1
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
void SOUND_Init() {}
Please Log in or Create an account to join the conversation.