Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems with the source code #6

Closed
sgf opened this issue Dec 11, 2023 · 4 comments
Closed

some problems with the source code #6

sgf opened this issue Dec 11, 2023 · 4 comments

Comments

@sgf
Copy link

sgf commented Dec 11, 2023

all of .dds files not include in the source code
no input
image
GenerateStandardSkin looks not good desktop.Skin = Gui.GenerateStandardSkin();

image

@Roderik11
Copy link
Owner

The sample code is just an example. Squid does not provide any input layer, render loop, etc.
It's purely a GUI blackbox - you need to implement input polling and rendering yourself.
VirtualKeyToScanCode can be implemented using the Win32 API.

Regarding the default skin i guess can i upload the dds files - i'll look into it.
But also highly encourage you to create your own skin, so you get a better understanding of it all.
Cheers!

@sgf
Copy link
Author

sgf commented Dec 11, 2023

Maybe dds is not necessary, and a skin similar to imgui can be built. In other words, all skins are drawn by code without any texture involvement.

@sgf sgf closed this as completed Dec 11, 2023
@Roderik11
Copy link
Owner

Yes you can easily create a skin without textures. All you need is a single white texture and a font.
In fact that's what i usually do in my own projects.

@Roderik11
Copy link
Owner

Maybe dds is not necessary, and a skin similar to imgui can be built. In other words, all skins are drawn by code without any texture involvement.

Having read this a second time i now understand you probably mean the Squid standard skin should not reference any textures.
That makes a lot of sense to me. I'll look into this. In the meantime i have uploaded all resources referenced in the standard skin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants