-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from DRincs-Productions/97-enable-picture-in-b…
…ackground-for-room-and-conversation 97 enable picture in background for room and conversation
- Loading branch information
Showing
7 changed files
with
83 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from pythonpackages.nqtr.conversation import Conversation | ||
from pythonpackages.nqtr.navigation import Room | ||
from pythonpackages.nqtr.routine import Commitment | ||
from pythonpackages.renpy_utility.renpy_custom_log import * | ||
from pythonpackages.renpy_utility.utility import * | ||
import renpy.character as character | ||
|
||
|
||
def current_button_conversations( | ||
commitments_in_cur_location: dict[character.ADVCharacter, Commitment], | ||
room: Room, | ||
cur_room: Room, | ||
) -> list[tuple[Conversation, Commitment]]: | ||
"""Return a list of conversation buttons for the current room and available for the current time""" | ||
conversations: list[tuple[Conversation, Commitment]] = [] | ||
for comm in commitments_in_cur_location.values(): | ||
if cur_room and comm and room.id == comm.room_id and room.id == cur_room.id: | ||
# Insert in talk for every ch, main in that room | ||
for conversation in comm.conversations: | ||
if conversation: | ||
conversations.append((conversation, comm)) | ||
return conversations | ||
|
||
|
||
def current_picture_in_background_conversations( | ||
commitments_in_cur_location: dict[character.ADVCharacter, Commitment], | ||
room: Room, | ||
cur_room: Room, | ||
) -> list[tuple[Conversation, Commitment]]: | ||
"""Return a list of conversation picture in background for the current room and available for the current time""" | ||
conversations: list[tuple[Conversation, Commitment]] = [] | ||
for comm in commitments_in_cur_location.values(): | ||
if cur_room and comm and room.id == comm.room_id and room.id == cur_room.id: | ||
# Insert in talk for every ch, main in that room | ||
for conversation in comm.conversations: | ||
if conversation and conversation.is_picture_in_background: | ||
conversations.append((conversation, comm)) | ||
return conversations |
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
Submodule wiki
updated
from d34de9 to b7798b