-
Notifications
You must be signed in to change notification settings - Fork 46
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
About page #128
About page #128
Conversation
I forgot add button for mobile :) |
Now all done :) |
I don't think a CSV table is the best suited data format for saving contributers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just left a few ideas to improve the code
[node name="Fam1" type="Label" parent="About/ColorRect/Control/ScrollContainer/VBoxAbout/BigThankYou/VBoxContainer"] | ||
margin_right = 1138.0 | ||
margin_bottom = 45.0 | ||
custom_fonts/font = ExtResource( 5 ) | ||
text = "Mother" | ||
align = 1 | ||
valign = 1 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Fam2" type="Label" parent="About/ColorRect/Control/ScrollContainer/VBoxAbout/BigThankYou/VBoxContainer"] | ||
margin_top = 49.0 | ||
margin_right = 1138.0 | ||
margin_bottom = 94.0 | ||
custom_fonts/font = ExtResource( 5 ) | ||
text = "Father" | ||
align = 1 | ||
valign = 1 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Fam3" type="Label" parent="About/ColorRect/Control/ScrollContainer/VBoxAbout/BigThankYou/VBoxContainer"] | ||
margin_top = 98.0 | ||
margin_right = 1138.0 | ||
margin_bottom = 143.0 | ||
custom_fonts/font = ExtResource( 5 ) | ||
text = "Other members in my family" | ||
align = 1 | ||
valign = 1 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is not necessary, but give more kind to the project :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk. I wouldn't do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in some project, I saw this, but of course not in commercial projects :)
I also think about this, but easily and fast parse in Godot I use csv |
Thanks @HaSa1002 for reviewing my code |
Thinking more about the format question, what about using a Resource? We can edit them in Engine and we don't need to parse them. Just create one like this: class_name Authors
extends Resource
export(Array, String) authors := []
export(Array, Array, String) translators := [] # structure will be [[Name, Language]] then just create the resource in the file system and assign it in your about script using export var authors: Authors |
I forgot about this idea, thanks. It should be much better. Do we need separate main developers and contributors? |
Good idea, but this method also has disadvantages. This is so hard to update now, maybe in Godot 4.0, it changes. Can't change order position in Array and can't redo operation |
But the order doesn't matter? |
for language matter, but the only first index of array :) Dictionary is not enough to make also usable |
and please rename |
Do you want to group authors by their language?
|
yes, I want to group it. You can see this now in the last commit |
Where do you get ideas? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could iterate like this
export(NodePath) var developers_vbox | ||
export(NodePath) var contributors_vbox | ||
export(NodePath) var translators_vbox | ||
export(Resource) var authours = authours as Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export(Resource) var authours = authours as Authors | |
export(Resource) var authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't do this, because I miss a hint from the editor about what Resource I want to use. I know it will fix in Godot 4.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah but just fix the name (authors may work for hours, but the words are unrelated) and remove the assign. It is not needed. You could do
export(Resource) var authours = authours as Authors | |
export(Resource) var authors = null |
and do assert(authors != null)
in _ready
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I will don't have autocomplete. Problem not about is null or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But using the approach you used, you don't have autocompletion as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in code, I have, but not in the editor in inspector
How to use Resources created from class Author:
|
Can you please squash all the commits into one? Rebase
Soft reset
|
I merged commits. It was pretty hard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a quick test and it works fine. Just one thing left to ensure it works on all screens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
Very nice work! Thank you! |
Create about page #124
To add new people just update AboutPeople.csv