inda19plusplus / logik

Logisim clone
MIT License
2 stars 5 forks source link

Create a non-working but good looking toolbar #11

Closed weerox closed 4 years ago

weerox commented 4 years ago

Jag har ingen aning om hur man "importerar" bilder relativt projektet så det är hårdkodade sökvägar, vilket måste ändras

weerox commented 4 years ago

I [1] laddar de bilder från en "resource". Resurserna verkar anges när programmet byggs, se [2].

[1] https://github.com/mono/gtk-sharp/blob/master/sample/GtkDemo/DemoImages.cs#L51 [2] https://github.com/mono/gtk-sharp/blob/master/sample/GtkDemo/Makefile.am#L48

EDIT: Here is the appropriate compiler option: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/resource-compiler-option

NogginBops commented 4 years ago

Good stuff! Fixed so that the images get included in a Resource.resx file so we don't need hardcoded paths.