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

Add paintshop to stations #5342

Merged
merged 18 commits into from
May 20, 2022
Merged

Add paintshop to stations #5342

merged 18 commits into from
May 20, 2022

Conversation

WKFO
Copy link
Contributor

@WKFO WKFO commented Feb 12, 2022

Adds paintshop to faction homeworld stations and some high population stations. There you can change the colors and the painting pattern of your ship. Pricing is calculated from the surface area approximated by adding up the cross section areas from all sides.

paintshopPreview.mp4

@impaktor
Copy link
Member

Nice! I'm thinking (as I always do), that this shouldn't be available on all stations. Maybe something with station size? Tech level? Homeworld? (The other tabs are sort of required to be there, because "Frontier" / "It's always been like that").
2022-02-13-094303_1600x900_scrot

@WKFO
Copy link
Contributor Author

WKFO commented Feb 13, 2022

With the second commit the paintshop is quite more testable as in the initial state it didn't work at all. Now I need to probably separate the color changing thing to three separate colors (probably use sliders instead as well) and also not make it look horrible in terms of UI design

@impaktor
Copy link
Member

impaktor commented Feb 13, 2022

Nice! I'm thinking (as I always do), that this shouldn't be available on all stations.

or some stations are manufacture specific, as discussed in threads here and here

Mockup, from IRC:

@WKFO
Copy link
Contributor Author

WKFO commented Feb 15, 2022

One can now pick colors by hand, so I removed the color randomizer button without giving it much thought. Maybe I should've left it in. What do you think?

@bszlrd
Copy link
Contributor

bszlrd commented Feb 15, 2022

Might be nice for those who are more just browsing, want to see ideas.

@WKFO
Copy link
Contributor Author

WKFO commented Feb 16, 2022

paint_prices

The current (placeholder) painting price algorithm is hullMass * 2.5

[10.0, 'varada']
[12.5, 'xylophis']
[20.0, 'pumpkinseed_police']
[25.0, 'kanara']
[25.0, 'kanara_civ']
[25.0, 'pumpkinseed']
[32.5, 'wave']
[45.0, 'amphiesma']
[62.5, 'bowfin']
[67.5, 'molamola']
[70.0, 'sinonatrix']
[75.0, 'lunarshuttle']
[80.0, 'sinonatrix_police']
[125.0, 'natrix']
[200.0, 'skipjack']
[437.5, 'deneb']
[525.0, 'bluenose']
[950.0, 'molaramsayi']
[1125.0, 'nerodia']
[1150.0, 'venturestar']
[1250.0, 'storeria']
[1950.0, 'ac33']
[2125.0, 'lodos']
[2225.0, 'vatakara']
[2350.0, 'malabar']
[3450.0, 'dsminer']

Ideally, I think it should be more similar to:
area

@Keeper1st
Copy link
Contributor

To avoid having two "ship" icons, perhaps using the "fountain_pen" icon would be better, in lieu of a paint sprayer for now. I once again suggest not having text that refers to the player as "sir" as the pilot (and player) may not be male.

@WKFO
Copy link
Contributor Author

WKFO commented Feb 22, 2022

Ah, "sir" is only for males right? English is my secondary language - I will change that.

I think I can just wait for the paint sprayer unless it takes months.

@bszlrd
Copy link
Contributor

bszlrd commented Feb 23, 2022

I'll make one as soon as my school stuff winds down. Hopefully im the weekend the latest.

@Keeper1st
Copy link
Contributor

Actually I thought of a better idea. Why not have the paintshop be part of the ShipRepair tab? If your ship is undamaged and the station meets the threshold of having the paintshop, then after the "Your ship is in perfect working condition" line there can be another -- potentially variable scripts: "We offer painting services. For your (shipname) we would charge $x. How about it?" / "Since you're here, how about we give your (shipname) a makeover? It'll cost you only $x." / "For $x we can customise your ship's paintjob." This would be followed by an "Enter paint shop" button. The user would not be charged at this point; the price is just mentioned up front.

Some of the the greeting texts in the paintshop would be changed as the user has been greeted already, so lines could be like "Please use this tool to show us how you'd like it." / "What design would you like your ship to have?" Then the apply paint button can say, "Apply paintjob for $x" perhaps.

This idea solves the problem of requiring an extra tab icon, and solves the mystery about who is talking to you about the paintjob, as it'd be assumed to be the station mechanic we see on the first part of the ShipRepair tab.

@impaktor
Copy link
Member

impaktor commented Feb 24, 2022

If using a tab, as @Keeper1st suggests, we might want to consider also adding a line in the Lobby "This station rocks a paintshop" (but better worded), as else, people might not notice we even have paintshops in the game? Ship repair tab is not something I usually clicked when I played the game.

@bszlrd
Copy link
Contributor

bszlrd commented Feb 24, 2022

That was my first thought as well. Having its separate tab aids discoverability a lot.

@bszlrd
Copy link
Contributor

bszlrd commented Feb 24, 2022

@WKFO How about this one?
image
icons-airbrush.zip

Co-Authored-By: Szlrd <4182678+nozmajner@users.noreply.github.com>
@WKFO
Copy link
Contributor Author

WKFO commented Feb 24, 2022

@nozmajner Nice!

@WKFO WKFO marked this pull request as ready for review February 24, 2022 11:01
@Keeper1st
Copy link
Contributor

If it's going to remain a separate tab, then I think A) the default tab icon size needs to change or they'd appear on top of some of the center tabs (I change the icon size in my own installation anyway as the default size is enormous) and B) there should be a facegen for the detailer. What would the title of the person be? "Ship Detailer" perhaps?

Another no-icon possibility would be on stations which have a ship detailer (i.e. paintshop), it shows up on the bulletin board as So-and-so's Ship Detailing Service. But we have the icon now, so...

If you're editing the icons file, how about a change to the Major Imports and Major Exports icons, so instead of only a slight change in size from the Minor versions, they also have two arrows or two arrow shafts, to make them a little more distinctive, suggesting visually a larger quantity of stuff coming or going?

@Zireael07
Copy link

I'd prefer if paintjob was a separate thing, OR the repair tab be renamed so that people do not miss the fact that it has more things than just repair.

@Keeper1st
Copy link
Contributor

Keeper1st commented Feb 24, 2022

Just installed this for the first time. It probably should tell the player up front that they don't have enough money rather than let them not realize they won't be able to pay for it. Perhaps the price should list as "Insufficient funds" in yellow to be consistent. Not sure I like it saying $0 until you make a change. If there were price variables as you changed more than one color, changed the design, or something, that would be cool, but as it's a flat fee I think it should list that up front always, and just not apply anything if you click Apply but haven't changed anything.

I notice there's a duplicate "local pionillium = ui.fonts.pionillium" line in the 08-paintshop.lua also.

@WKFO
Copy link
Contributor Author

WKFO commented Feb 25, 2022

The pricing thing is a remnant from the time when I thought of charging more for pattern changes (then discarded the idea). I will change that. Thanks for pointing out!

@impaktor
Copy link
Member

@WKFO what's the status of this? You've done everything you wanted to do with this? Ready for merge?

(I'd squash merge, I think, unless you want to clean up the commit history)

@WKFO
Copy link
Contributor Author

WKFO commented Apr 14, 2022

No more edits are planned. I did everything I wanted. Should be ready.

(Squash merge sounds fine.)

@sturnclaw
Copy link
Member

Couple of bugs / usability issues I found playing around with the paintshop feature:

  • Clicking on the left arrow skips pattern 3 for the pumpkinseed, but clicking the right arrow allows it to be selected.
  • The font choice for the paintshop screen is very uniform and makes it difficult to differentiate high-importance information (price) from low-importance information (individual RGB components of a color). I would recommend moving the price to near the bottom buttons and increasing the font size for it specifically.
  • The "Apply Changes" should clearly indicate that you are purchasing the paintjob (e.g. "Confirm Purchase"), and I'd ideally move the Reset Preview button to underneath the color display in a smaller size so it's not confused for part of the purchase flow.
  • The frame height for the pattern switch buttons doesn't match the text at 1600x900; see the related picture.

image

Finally, I'll second the requests for the paint shop to be moved to the Ship Repair tab, as there's really no reason to have a paint shop tab visible if the station doesn't support the paint shop, and it's fairly easy to add a line to the lobby or ship repairs tab letting players know the option is available. This isn't a hard requirement to merge the PR, but I think it's more semantically appropriate to be a subtab of the repair screen, and we are starting to have too many top-level tabs in the station view.

@bszlrd
Copy link
Contributor

bszlrd commented Apr 24, 2022

Hmm, if it goes under the repair tab, then maybe I could update the icon, and the station could pick the wrench and driver icon when there's no paint shop, and could pick an icon that indicates that paint shop is available if it is.

@impaktor
Copy link
Member

  • I agree with @Web-eWorks that if feels more natural in the repair tab.

  • not sure what to do with tab icon. Simplest it to do nothing / not using the new spray can

  • optionally, some indication in the lobby could be nice, but I'd like it to be a bit more than just "we have spray shop", some ideas:

    • similar to black market, each repair? spray? shop is run by someone: "come by Standford & Son's ship repair and spray shop" + flavors
    • similar to tech level: "our ship repair & maintenance service is accredited for level 3" (player will learn what "level N" means by checking it out when they see it).
    • similar to discussion (on dev forum) on manufacturer licensing, so a station is licensed to deal with a specific ship manufacturer, although, not sure how that would tie in with spray shop, that aught to be manufacturer independent.

@sturnclaw
Copy link
Member

not sure what to do with tab icon. Simplest it to do nothing / not using the new spray can

The tab icon would most likely be best served in the repair tab interface itself as a button to go to the paintjob options; the paintjob interface would fit most naturally as a "fullscreen modal" interface over top of / replacing the repair interface when activated, similar to e.g. the missions window.

similar to tech level: "our ship repair & maintenance service is accredited for level 3" (player will learn what "level N" means by checking it out when they see it).

A "we offer ship repair, maintenance, and cosmetic services at this location" could suffice I think - along with renaming the "repair" tab to "Ship Maintenance" or similar.

@WKFO
Copy link
Contributor Author

WKFO commented May 7, 2022

I don't know what's the deal with the pattern selector. In my Pioneer, Pumpkinseed only has 1 pattern anyway. It can cylce through all 10 patterns for Sinonatrix without problem though.

Copy link
Contributor

@laarmen laarmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really qualified to review UI code, but I had some more generic remarks and questions :)

@sturnclaw sturnclaw merged commit 41a06b1 into pioneerspacesim:master May 20, 2022
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

Successfully merging this pull request may close these issues.

7 participants