Use jres for icon images (better for offline) (#776)

This commit is contained in:
Sam El-Husseini 2018-05-15 18:36:36 -07:00 committed by GitHub
parent 831a476130
commit 3112e442ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
43 changed files with 167 additions and 40 deletions

126
libs/core/icons.jres Normal file

File diff suppressed because one or more lines are too long

View File

@ -27,124 +27,124 @@ THE SOFTWARE.
enum IconNames { enum IconNames {
//% block="heart" //% block="heart"
//% blockImage=1 //% jres=icons.heart
Heart = 0, Heart = 0,
//% block="small heart" //% block="small heart"
//% blockImage=1 //% jres=icons.smallheart
SmallHeart, SmallHeart,
//% block="yes" //% block="yes"
//% blockImage=1 //% jres=icons.yes
Yes, Yes,
//% block="no" //% block="no"
//% blockImage=1 //% jres=icons.no
No, No,
//% block="happy" //% block="happy"
//% blockImage=1 //% jres=icons.happy
Happy, Happy,
//% block="sad" //% block="sad"
//% blockImage=1 //% jres=icons.sad
Sad, Sad,
//% block="confused" //% block="confused"
//% blockImage=1 //% jres=icons.confused
Confused, Confused,
//% block="angry" //% block="angry"
//% blockImage=1 //% jres=icons.angry
Angry, Angry,
//% block="asleep" //% block="asleep"
//% blockImage=1 //% jres=icons.asleep
Asleep, Asleep,
//% block="surprised" //% block="surprised"
//% blockImage=1 //% jres=icons.surprised
Surprised, Surprised,
//% block="silly" //% block="silly"
//% blockImage=1 //% jres=icons.silly
Silly, Silly,
//% block="fabulous" //% block="fabulous"
//% blockImage=1 //% jres=icons.fabulous
Fabulous, Fabulous,
//% block="meh" //% block="meh"
//% blockImage=1 //% jres=icons.meh
Meh, Meh,
//% block="t-shirt" //% block="t-shirt"
//% blockImage=1 //% jres=icons.tshirt
TShirt, TShirt,
//% block="roller skate" //% block="roller skate"
//% blockImage=1 //% jres=icons.rollerskate
Rollerskate, Rollerskate,
//% block="duck" //% block="duck"
//% blockImage=1 //% jres=icons.duck
Duck, Duck,
//% block="house" //% block="house"
//% blockImage=1 //% jres=icons.house
House, House,
//% block="tortoise" //% block="tortoise"
//% blockImage=1 //% jres=icons.tortoise
Tortoise, Tortoise,
//% block="butterfly" //% block="butterfly"
//% blockImage=1 //% jres=icons.butterfly
Butterfly, Butterfly,
//% block="stick figure" //% block="stick figure"
//% blockImage=1 //% jres=icons.stickfigure
StickFigure, StickFigure,
//% block="ghost" //% block="ghost"
//% blockImage=1 //% jres=icons.ghost
Ghost, Ghost,
//% block="sword" //% block="sword"
//% blockImage=1 //% jres=icons.sword
Sword, Sword,
//% block="giraffe" //% block="giraffe"
//% blockImage=1 //% jres=icons.giraffe
Giraffe, Giraffe,
//% block="skull" //% block="skull"
//% blockImage=1 //% jres=icons.skull
Skull, Skull,
//% block="umbrella" //% block="umbrella"
//% blockImage=1 //% jres=icons.umbrella
Umbrella, Umbrella,
//% block="snake" //% block="snake"
//% blockImage=1 //% jres=icons.snake
Snake, Snake,
//% block="rabbit" //% block="rabbit"
//% blockImage=1 //% jres=icons.rabbit
Rabbit, Rabbit,
//% block="cow" //% block="cow"
//% blockImage=1 //% jres=icons.cow
Cow, Cow,
//% block="quarter note" //% block="quarter note"
//% blockImage=1 //% jres=icons.quarternote
QuarterNote, QuarterNote,
//% block="eigth note" //% block="eigth note"
//% blockImage=1 //% jres=icons.eigthnote
EigthNote, EigthNote,
//% block="pitchfork" //% block="pitchfork"
//% blockImage=1 //% jres=icons.pitchfork
Pitchfork, Pitchfork,
//% block="target" //% block="target"
//% blockImage=1 //% jres=icons.target
Target, Target,
//% block="triangle" //% block="triangle"
//% blockImage=1 //% jres=icons.triangle
Triangle, Triangle,
//% block="left triangle" //% block="left triangle"
//% blockImage=1 //% jres=icons.lefttriangle
LeftTriangle, LeftTriangle,
//% block="chess board" //% block="chess board"
//% blockImage=1 //% jres=icons.chessboard
Chessboard, Chessboard,
//% block="diamond" //% block="diamond"
//% blockImage=1 //% jres=icons.diamond
Diamond, Diamond,
//% block="small diamond" //% block="small diamond"
//% blockImage=1 //% jres=icons.smalldiamond
SmallDiamond, SmallDiamond,
//% block="square" //% block="square"
//% blockImage=1 //% jres=icons.square
Square, Square,
//% block="small square" //% block="small square"
//% blockImage=1 //% jres=icons.smallsquare
SmallSquare, SmallSquare,
//% block="scissors" //% block="scissors"
//% blockImage=1 //% jres=icons.scissors
Scissors Scissors
} }

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -18,6 +18,7 @@
"images.cpp", "images.cpp",
"basic.cpp", "basic.cpp",
"icons.ts", "icons.ts",
"icons.jres",
"input.cpp", "input.cpp",
"input.ts", "input.ts",
"control.ts", "control.ts",