Skip to content

Commit dad9013

Browse files
authored
Merge pull request #519 from bryanmontalvan/exampleScenes
Removable of nonexistent examples:
2 parents 7dba56e + 8d052c5 commit dad9013

4 files changed

Lines changed: 0 additions & 61 deletions

File tree

src/components/reference/ModelReferenceTab.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import model from "../../myr/modelReference";
44
import ModelPack from "../structural/Models.js";
55

66
import {
7-
IconButton,
87
Table,
98
TableBody,
109
TableHead,
@@ -28,20 +27,6 @@ export default class ModelReference extends React.Component {
2827
return null;
2928
};
3029

31-
exampleHelper = (example) => {
32-
if(example) {
33-
let link = "/modelReference/" + example;
34-
return (
35-
<IconButton
36-
href={link}
37-
className="material-icons">
38-
link
39-
</IconButton>
40-
);
41-
}
42-
return null;
43-
};
44-
4530
render() {
4631
return (
4732
<Table >
@@ -50,7 +35,6 @@ export default class ModelReference extends React.Component {
5035
<TableCell>Name</TableCell>
5136
<TableCell></TableCell>
5237
<TableCell className='model'>Image</TableCell>
53-
<TableCell className='modRefExample'>Example</TableCell>
5438
</TableRow>
5539
</TableHead>
5640
<TableBody> {model.map((row, index) => {
@@ -61,7 +45,6 @@ export default class ModelReference extends React.Component {
6145
<TableCell >
6246
<img id="image" src={this.imageHelper(row.model)} alt="alt" height = "90" width = "90"></img>
6347
</TableCell>
64-
<TableCell >{this.exampleHelper(row.example)}</TableCell>
6548
</TableRow>);
6649
})}
6750
</TableBody>

src/components/reference/TextureReferenceTab.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import texture from "../../myr/textureReference";
44
import TexturePack from "../structural/Textures.js";
55

66
import {
7-
IconButton,
87
Table,
98
TableBody,
109
TableHead,
@@ -31,21 +30,6 @@ export default class TextureReference extends React.Component {
3130
}
3231
};
3332

34-
exampleHelper = (example) => {
35-
if (example) {
36-
let link = "/textureReference/" + example;
37-
return (
38-
<IconButton
39-
href={link}
40-
className="material-icons">
41-
link
42-
</IconButton>
43-
);
44-
} else {
45-
return null;
46-
}
47-
};
48-
4933
render() {
5034
return (
5135
<Table >
@@ -55,7 +39,6 @@ export default class TextureReference extends React.Component {
5539
<TableCell></TableCell>
5640
<TableCell className='texture'>Image</TableCell>
5741
<TableCell className='creator'>Image Creator</TableCell>
58-
<TableCell className='texRefExample'>Example</TableCell>
5942
</TableRow>
6043
</TableHead>
6144
<TableBody> {texture.map((row, index) => {
@@ -67,7 +50,6 @@ export default class TextureReference extends React.Component {
6750
<img id="image" src={this.imageHelper(row.image)} alt="alt" height = "90" width = "90"></img>
6851
</TableCell>
6952
<TableCell >{row.creator}</TableCell>
70-
<TableCell >{this.exampleHelper(row.example)}</TableCell>
7153
</TableRow>);
7254
})}
7355
</TableBody>

src/myr/modelReference.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,30 @@ const model = [
22
{
33
name: "sword",
44
model: "sword",
5-
example: "sword",
65
},
76
{
87
name: "fish",
98
model: "fish",
10-
example: "fish",
119
},
1210
{
1311
name: "milkTruck",
1412
model: "milkTruck",
15-
example: "milkTruck",
1613
},
1714
{
1815
name: "fox",
1916
model: "fox",
20-
example: "fox",
2117
},
2218
{
2319
name: "lantern",
2420
model: "lantern",
25-
example: "lantern",
2621
},
2722
{
2823
name: "fabricChair",
2924
model: "fabricChair",
30-
example: "fabricChair",
3125
},
3226
{
3327
name: "duck",
3428
model: "duck",
35-
example: "duck",
3629
},
3730
];
3831

src/myr/textureReference.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,115 +3,96 @@ const texture = [
33
name: "bricks",
44
image: "bricks",
55
creator: "“Caveman Chuck” Coker",
6-
example: "bricks",
76
},
87
{
98
name: "bark",
109
image: "bark",
1110
creator: "Jacob Gube",
12-
example: "bark",
1311
},
1412
{
1513
name: "checkerboard",
1614
image: "checkerboard",
1715
creator: "Indolences",
18-
example: "checkerboard",
1916
},
2017
{
2118
name: "chevron",
2219
image: "chevron",
2320
creator: "Melstampz",
24-
example: "chevron",
2521
},
2622
{
2723
name: "cobblestone",
2824
image: "cobblestone",
2925
creator: "Tiling Tom",
30-
example: "cobblestone",
3126
},
3227
{
3328
name: "dirt",
3429
image: "dirt",
3530
creator: "Dfass12",
36-
example: "dirt",
3731
},
3832
{
3933
name: "duck",
4034
image: "duck",
4135
creator: "Francescominciotti",
42-
example: "duck",
4336
},
4437
{
4538
name: "fabric",
4639
image: "fabric",
4740
creator: "Calebkimbrough",
48-
example: "fabric",
4941
},
5042
{
5143
name: "grass",
5244
image: "grass",
5345
creator: "zaphad1",
54-
example: "grass",
5546
},
5647
{
5748
name: "lava",
5849
image: "lava",
5950
creator: "zaphad1",
60-
example: "lava",
6151
},
6252
{
6353
name: "leaves",
6454
image: "leaves",
6555
creator: "zaphad1",
66-
example: "leaves",
6756
},
6857
{
6958
name: "marble",
7059
image: "marble",
7160
creator: "JustMeSupport",
72-
example: "marble",
7361
},
7462
{
7563
name: "metal",
7664
image: "metal",
7765
creator: "CopperScaleDragon",
78-
example: "metal",
7966
},
8067
{
8168
name: "paint",
8269
image: "paint",
8370
creator: "Walmarc04",
84-
example: "paint",
8571
},
8672
{
8773
name: "rug",
8874
image: "rug",
8975
creator: "geishaboy500",
90-
example: "rug",
9176
},
9277
{
9378
name: "sand",
9479
image: "sand",
9580
creator: "Sitges",
96-
example: "sand",
9781
},
9882
{
9983
name: "stone",
10084
image: "stone",
10185
creator: "Webtreats",
102-
example: "stone",
10386
},
10487
{
10588
name: "water",
10689
image: "water",
10790
creator: "Grendelkhan",
108-
example: "water",
10991
},
11092
{
11193
name: "wood",
11294
image: "wood",
11395
creator: "Webtreats",
114-
example: "wood",
11596
},
11697

11798
];

0 commit comments

Comments
 (0)