Project Notepad

by Cygin

Highly customizable in-game notepad.

Utilities
6 hours ago
2.0
572

i Icons

a month ago

Thanks for the great mod! I have a suggestion:

Icons - add a small button or a small text field with button that allows adding icons, like one that is on editor of logistic group name - there is kind of "Rich text" editor for this as far as I know - I see it implemented in "Compakt Circuits" mod for naming inputs and so on...

a month ago

Hey Thelordodin, thanks for the suggestion!

The first iterations I made of PN before release had a rich text feature, but I decided to move away from that because I wanted users to be able to write down their ideas instantly without having to press an edit button each time.

It's something I'd like to bring back, and I'm still looking for ways to let players have the choice between a simple text box and a 2-step edit mode.

a month ago

I mean: leave all as is, just add a small Richtext editor on bottom pane, when anything is entered there - just copy it to current editor position (and clear small text editor field).

22 days ago

Piggy backing on this thread since it's already about icons rather than making another icon thread.

The insert icon button is a nice addition, but is a little limited. For example, the planets (Gleba, Volcanus, etc) are not available as icons. Is it possible to "hook" into the "Select a signal" UI when selecting an icon for base game icons, such as in the minimap "Add tag" interface or the Speaker icons? Thus giving the menu of categories with more options.

I've also noticed the icons append to the end of the note instead of inserting at the cursor position.

21 days ago
(updated 21 days ago)

Hey there Mattias, thanks for the suggestion. I'll see about adding those icons.
Regarding the icon appending to the end of the note, sadly, Factorio doesn't let us read the caret position. But I'm exploring solutions for this, such as a 'copy to clipboard' alternative when an icon is pressed.

21 days ago

I don't know much about the Factorio API, but it does appear there is an "icon_selector" attribute for the text-box LuaGuiElement type.

I'm wondering if this is the same icon selector used in places such as the "Add tag" on the map view which does place the icon at the caret position. If so, this could potentially solve both, having full access to all icons and inserting at the cursor.

But, i don't know how this would interact with the existing text-box in the gui window.

New response