名前入力 キーボード 入力欄の位置変更

七草のおかゆ
記事: 1
登録日時: 2022年8月26日(金) 06:36

名前入力 キーボード 入力欄の位置変更

投稿記事by 七草のおかゆ » 2022年8月26日(金) 07:15

初めまして。
名前入力をキーボードにするプラグインについての質問です。
私はツクールを始めたばかりでプラグイン、スクリプトも分かりません。
よろしくお願い致します。

くらむぼん様よりキーボードでテキストフォーム入力(修正版)
・プラグイン
https://raw.githubusercontent.com/krmbn ... putForm.js
なのですが、入力欄が左上に来てしまい、x軸・y軸を入力しても移動してくれません。
最大文字数等は機能しています。
gazou.png

gazou2.jpg


また、cssについて
・CSSファイル
https://raw.githubusercontent.com/krmbn ... utForm.css
をダウンロードするとテキストになっていて
これが正しいのか分かりません。
よろしくお願い致します。
また、質問を行うのも初めてなので不備があれば教えて頂けたら幸いです。

Poco
記事: 11
登録日時: 2021年3月30日(火) 12:30

Re: 名前入力 キーボード 入力欄の位置変更

投稿記事by Poco » 2023年4月10日(月) 17:06

以下の分をcss内の111_InputFormの中身に上書きしてみてください。






/* ここからは、テキストフォームのデザインに関する設定です。
(Translation: The text form design setting follows.) */
/* 重要:font-size は px で、width と height は em で指定してください。
(Important note: font-size must be set by px,
width and height must be set by em.) */
#_111_input{
position: absolute; /* */
z-index:999; /* */
font-size: 24px; /* ←この数字は文字の大きさを表しています */
width : 15em; /* ←この数字はウインドウの幅を表しています */
height : 1.5em; /* ←この数字はウインドウの高さを表しています */

font-weight:bold;
color: #f8f8f8;
text-shadow: black 1px 1px 0px, black -1px 1px 0px,
black 1px -1px 0px, black -1px -1px 0px;
font-family: GameFont;

border:solid 3px #f8f8f8;
border-radius:5px;
background: rgba(0,0,0, 0.5);
}
/* ここからは、決定/キャンセルボタンのデザインに関する設定です。
(Translation: The OK/Cancel buttons design setting follows.) */
#_111_submit{
position: absolute; /* */
z-index:999; /* */
font-size: 24px; /* ←この数字は文字の大きさを表しています */

font-weight:bold;
color: #f8f8f8;
text-shadow: black 1px 1px 0px, black -1px 1px 0px,
black 1px -1px 0px, black -1px -1px 0px;
font-family: GameFont;

border:solid 3px #f8f8f8;
border-radius:5px;
background: rgba(0,0,0, 0.5);
}
/* ここからは、残り文字数表示のデザインに関する設定です。
(Translation: The rest character display window design setting follows.) */
#_Sasuke_RestStrLength{
position: absolute;
z-index:999;
font-size: 24px;
width : 2.5em;
height : 1.5em;

font-weight:bold;
color: #ffffff;
text-shadow: black 1px 1px 0px, black -1px 1px 0px,
black 1px -1px 0px, black -1px -1px 0px;
font-family: GameFont;

border:solid 3px rgba(0,0,0,0);
border-radius:5px;
background: rgba(0,0,0, 0.5);
}

“MZ:質問” へ戻る