Wuzzy/pride_flags
2
8
Fork
You've already forked pride_flags
6

use the formspecs to select the flag if the flags count greater than 40 #3

Closed
riceball wants to merge 3 commits from riceball/pride_flags:feat/formspec into master
pull from: riceball/pride_flags:feat/formspec
merge into: Wuzzy:master
Wuzzy:master
Wuzzy:all_wuzzy_updates
Wuzzy:stuff
Wuzzy:newflags
Wuzzy:hidden
First-time contributor
Copy link

I've add all country flags: https://github.com/snowyu/minetest-country_flags

It's too many to select one. So I added this.

I've add all country flags: https://github.com/snowyu/minetest-country_flags It's too many to select one. So I added this.
Owner
Copy link

Thanks. I also worked on a branch to do something like that, but lost interest.

I am not happy with your changes for now. Several problems:

  • The flag icon is weirdly cut-off in the flag formspec
  • Only works if there are 40 flags (why this arbitrary number?)
  • Does not work for flags that were already placed in the world (no LBM?)
Thanks. I also worked on a branch to do something like that, but lost interest. I am not happy with your changes for now. Several problems: * The flag icon is weirdly cut-off in the flag formspec * Only works if there are 40 flags (why this arbitrary number?) * Does not work for flags that were already placed in the world (no LBM?)
Author
First-time contributor
Copy link

I've just tried to solve the problem too many flags to choose from.

It's just a start to solve the problem. It's enough for my kids. After all minetest is just a teaching aid(toy) for children, very good.

So If have a better implementation with more free time, that's very perfect.
I am a new bie for formspec or lua.

The flag icon is weirdly cut-off in the flag formspec

It seems a bug: Images in tablecolumn are not scaled

Only works if there are 40 flags (why this arbitrary number?)

Only works if there are greater than 40 flags.
Keeping the previous approach is fine if there aren't too many flags.
The 40 flags is roughly estimated that the previous flag will not exceed.

Does not work for flags that were already placed in the world (no LBM?)

Maybe LBM should be a switch in settingtypes to reduce the CPU overhead.

I've just tried to solve the problem too many flags to choose from. It's just a start to solve the problem. It's enough for my kids. After all minetest is just a teaching aid(toy) for children, very good. So If have a better implementation with more free time, that's very perfect. I am a new bie for formspec or lua. > The flag icon is weirdly cut-off in the flag formspec It seems a bug: [Images in tablecolumn are not scaled](https://github.com/minetest/minetest/issues/3403) > Only works if there are 40 flags (why this arbitrary number?) Only works if there are greater than 40 flags. Keeping the previous approach is fine if there aren't too many flags. The 40 flags is roughly estimated that the previous flag will not exceed. > Does not work for flags that were already placed in the world (no LBM?) Maybe LBM should be a switch in settingtypes to reduce the CPU overhead.
Owner
Copy link

Yeah, sorry, if the problems are not resolved, no merge. And I don't care enough about this mod to do the work myself.

So if there is no flag preview for the list possible, probably just remove it. It's better to have no feature than a broken feature. Besides, the player can see the flag in the 3D world anyway.

As for LBMs, this is not really a CPU concern as they are only executed at loading time. Once loaded, they don't do anything.

Conditions for merging:

  • Fix or remove the flag preview in the list
  • Fix the menu not appearing for flags that were already placed
  • No bugs
Yeah, sorry, if the problems are not resolved, no merge. And I don't care enough about this mod to do the work myself. So if there is no flag preview for the list possible, probably just remove it. It's better to have no feature than a broken feature. Besides, the player can see the flag in the 3D world anyway. As for LBMs, this is not really a CPU concern as they are only executed at loading time. Once loaded, they don't do anything. Conditions for merging: * Fix or remove the flag preview in the list * Fix the menu not appearing for flags that were already placed * No bugs
Owner
Copy link

If there is no response or change in about 30 days, I consider closing this PR as rejected.

If there is no response or change in about 30 days, I consider closing this PR as rejected.
Wuzzy closed this pull request 2022年11月26日 20:31:49 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Wuzzy/pride_flags!3
Reference in a new issue
Wuzzy/pride_flags
No description provided.
Delete branch "riceball/pride_flags:feat/formspec"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?