Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #11808 from deReeperJosh/disneyinfinitybaseandroid
Android: Infinity Base UI
- Loading branch information
Showing
21 changed files
with
623 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...droid/app/src/main/java/org/dolphinemu/dolphinemu/features/infinitybase/InfinityConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| package org.dolphinemu.dolphinemu.features.infinitybase | ||
|
|
||
| object InfinityConfig { | ||
| var LIST_FIGURES: Map<Long, String> = getFigureMap() | ||
| var REVERSE_LIST_FIGURES: Map<String, Long> = getInverseFigureMap() | ||
|
|
||
| private external fun getFigureMap(): Map<Long, String> | ||
| private external fun getInverseFigureMap(): Map<String, Long> | ||
|
|
||
| @JvmStatic | ||
| external fun removeFigure(position: Int) | ||
|
|
||
| @JvmStatic | ||
| external fun loadFigure(position: Int, fileName: String): String? | ||
|
|
||
| @JvmStatic | ||
| external fun createFigure( | ||
| figureNumber: Long, | ||
| fileName: String, | ||
| position: Int | ||
| ): String? | ||
| } |
11 changes: 11 additions & 0 deletions
11
...Android/app/src/main/java/org/dolphinemu/dolphinemu/features/infinitybase/model/Figure.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| package org.dolphinemu.dolphinemu.features.infinitybase.model | ||
|
|
||
| data class Figure(var number: Long, var name: String) { | ||
|
|
||
| companion object { | ||
| @JvmField | ||
| val BLANK_FIGURE = Figure(-1, "Blank") | ||
| } | ||
| } |
5 changes: 5 additions & 0 deletions
5
...ndroid/app/src/main/java/org/dolphinemu/dolphinemu/features/infinitybase/ui/FigureSlot.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| package org.dolphinemu.dolphinemu.features.infinitybase.ui | ||
|
|
||
| data class FigureSlot(var label: String, val position: Int) |
Oops, something went wrong.