-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement item: Potion of regeneration (#259)
* Implement item effect on server side * Implement Potion of Regeneration on client side * simplify * Add a few more methods * add initialization * Initialize in module * Fix typing errors * update * update * Update AnchorPoint * Include inventory = {} * Finalize item framework * just a little bit more * Use random item
- Loading branch information
1 parent
e262ed8
commit 5e7ccce
Showing
33 changed files
with
453 additions
and
141 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
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
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
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
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
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
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
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
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/ReplicatedStorage/Client/Functions/DestroyHUDButton.model.json
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,3 @@ | ||
{ | ||
"className": "BindableFunction" | ||
} |
41 changes: 0 additions & 41 deletions
41
src/ReplicatedStorage/Client/ReactComponents/ActionButtonContainer.lua
This file was deleted.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
src/ReplicatedStorage/Client/ReactComponents/HUDButtonContainer.lua
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,25 @@ | ||
--!strict | ||
local ReplicatedStorage = game:GetService("ReplicatedStorage"); | ||
local React = require(ReplicatedStorage.Shared.Packages.react); | ||
|
||
local function HUDButtonContainer(props) | ||
|
||
local isActionList = props.type == "Action"; | ||
|
||
return React.createElement("Frame", { | ||
AnchorPoint = Vector2.new(if isActionList then 1 else 0, 1); | ||
Position = UDim2.new(if isActionList then 1 else 0, if isActionList then -15 else 15, 1, -15); | ||
Size = UDim2.new(); | ||
AutomaticSize = Enum.AutomaticSize.XY; | ||
BackgroundTransparency = 1; | ||
}, { | ||
UIListLayout = React.createElement("UIListLayout", { | ||
Padding = UDim.new(0, 5); | ||
FillDirection = Enum.FillDirection.Horizontal; | ||
}); | ||
HUDButtonList = React.createElement(React.Fragment, {}, props.children); | ||
}); | ||
|
||
end; | ||
|
||
return HUDButtonContainer; |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/ReplicatedStorage/Shared/Functions/InitializeArchetype.model.json
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,3 @@ | ||
{ | ||
"className": "RemoteFunction" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/ReplicatedStorage/Shared/Functions/InitializeItem.model.json
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,3 @@ | ||
{ | ||
"className": "RemoteFunction" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/ReplicatedStorage/Shared/Functions/ItemFunctions/init.model.json
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,3 @@ | ||
{ | ||
"className": "Folder" | ||
} |
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
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
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
Oops, something went wrong.